# GraffitiSlider
Class Inherits GraffitiSuite.BaseCanvas
## About
GraffitiSlider is a custom slider control that supports both single and ranged values with 10 different styles.
**
Features
**
*
10 different styles to choose from
*
Single or Ranged Value Selection
*
Maximum and Minimum Properties for Variable Values
*
Custom Colors Support
## Preview




Previous
Next
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Attributes
| Name | Value |
| --- | --- |
| DefaultEvent | "ValueChange" |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| Styles | IndieDark <br> Softer <br> AquaRound <br> GraphiteRound <br> AquaPoint <br> GraphitePoint <br> LightHandles <br> ModernDark <br> BlueSky | Supported drawing styles. |
| Types | Single <br> Range | Supported value selection models. |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| ValueChange | (None) | (None) | Triggered when the user has changed the value. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Function | StyleCount | As | Returns a count (Ubound + 1) of all available styles. |
| Function | StyleName | As | Returns the name of a given style. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| LargeChange | Integer | Nil | Value to increase/decrease when the user clicks on the slider track. |
| lastMousePosition | Xojo.Point | Nil | |
| Maximum | Integer | Nil | Maximum slider value. |
| Minimum | Integer | Nil | Minimum slider value. |
| Private | As | = | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | = | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| ShowValueInTooltip | Boolean | Nil | Displays the current value in a tooltip that is centered near the control, with position depending on orientation. |
| SliderBGColor | Color | Nil | Background color of the slider knob. |
| SliderBorderColor | Color | Nil | Border color of the slider knob. |
| SmallChange | Integer | Nil | Amount to increase/decrease value on small changes. |
| Style | Styles | Nil | The current drawing style of the slider. |
| TrackBGColor | Color | Nil | Background color of the slider track. |
| TrackBorderColor | Color | Nil | Border color of the slider track. |
| Type | Types | Nil | The type of slider this is, Single or Ranged values. |
| UseDefaultColors | Boolean | Nil | Use the colors corresponding to the styles, rather than those set in properties when True. |
| Value | Integer | Nil | The current slider value (when Type = Types.Single). |
| ValueColor | Color | Nil | Color used to draw the value area. |
| ValueHigh | Integer | Nil | The current high value (when Type = Types.Range). |
| ValueLow | Integer | Nil | The current low value (when Type = Types.Range). |
| _VisualTracking | Boolean | Nil | |