This class provides a slider, which allows the user to specify a value by dragging its value indicator.
Constructor.
Argument | Type | Default | Description |
p | FXComposite | Parent widget. | |
tgt | FXObject | None | Message target. |
sel | Int | 0 | Message ID. |
opts | Int | AFXSLIDER_NORMAL | Options and hints. |
x | Int | 0 | X coordinate of origin. |
y | Int | 0 | Y coordinate of origin. |
w | Int | 0 | Width of the widget. |
h | Int | 0 | Height of the widget. |
pl | Int | 0 | Left padding (margin). |
pr | Int | 0 | Right padding (margin). |
pt | Int | 0 | Top padding (margin). |
pb | Int | 0 | Bottom padding (margin). |
Returns a sequence of ints (low, high) representing the widget's allowable minimum and maximum values.
Recalculates the slider. Redefined to handle slider movement.
Reimplemented from FXWindow.
Sets the number of decimal points displayed.
Argument | Type | Default | Description |
dp | Int | Number of decimal places. |
Sets the slider's auto-increment/decrement value.
Argument | Type | Default | Description |
inc | Int | Increment. |
Sets the maximum label's text.
Argument | Type | Default | Description |
text | String | Max label text. |
Sets the minimum label's text.
Argument | Type | Default | Description |
text | String | Min label text. |
Sets the slider's maximum and minimum values.
Argument | Type | Default | Description |
lo | Int | Minimum value. | |
hi | Int | Maximum value. |
Sets the slider's style.
Argument | Type | Default | Description |
style | Int | Style flag. |
Sets the slider's tip text.
Argument | Type | Default | Description |
text | String | Tip text. |
Sets the title label's justification mode.
Argument | Type | Default | Description |
mode | Int | Justification mode. |
Sets the title label's text.
Argument | Type | Default | Description |
text | String | Title text. |
options for tickmarks.
AFXSLIDER_HORIZONTAL | Slider shown horizontally. |
AFXSLIDER_VERTICAL | Slider shown vertically. |
AFXSLIDER_ARROW_UP | Slider has arrow head pointing up. |
AFXSLIDER_ARROW_DOWN | Slider has arrow head pointing down. |
AFXSLIDER_ARROW_LEFT | Slider has arrow head pointing left. |
AFXSLIDER_ARROW_RIGHT | Slider has arrow head pointing right. |
AFXSLIDER_INSIDE_BAR | Slider is inside the slot rather than overhanging. |
AFXSLIDER_SHOW_VALUE | Show slider value. |
AFXSLIDER_ABOVE_TITLE | Show slider above its title. |
AFXSLIDER_AFTER_TITLE | Show slider after its title. |
AFXSLIDER_NORMAL | Default slider options--slider is horizontal, inside the slot, and shown above its title label. |