Convenience class for creating a labeled spinner. The label field can be a label or check button (AFXFLOATSPINNER_CHECKBUTTON option).
Constructor.
Argument | Type | Default | Description |
p | FXComposite | Parent widget. | |
ncols | Int | Number of columns in the spinner. | |
labelText | String | Label preceeding spinner. | |
tgt | FXObject | None | Message target. |
sel | Int | 0 | Message ID. |
opts | Int | 0 | 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 | DEFAULT_PAD | Left padding. |
pr | Int | DEFAULT_PAD | Right padding. |
pt | Int | DEFAULT_PAD | Top padding. |
pb | Int | DEFAULT_PAD | Bottom padding. |
Returns a sequence of floats (low, high) representing the widget's allowable minimum and maximum values.
Returns True if the state of the check button or the radio button has changed by the user since it was programmatically set last time.
Sets the state of the check button or the radio button.
Argument | Type | Default | Description |
state | Bool | Button state. |
Sets the message ID of the check button or the radio button.
Argument | Type | Default | Description |
sel | Int | Selector. |
Sets the message target of the check button or the radio button.
Argument | Type | Default | Description |
tgt | FXObject | Target. |
Sets the editable state for the input field of spinner.
Argument | Type | Default | Description |
edit | Bool | True | Editable state. |
Sets the status line help text.
Argument | Type | Default | Description |
text | String | Help text. |
Sets the spinner increment.
Argument | Type | Default | Description |
incr | Float | Increment. |
Sets the label font.
Argument | Type | Default | Description |
fnt | FXFont | Label font. |
Sets the label string.
Argument | Type | Default | Description |
txt | String | Label text. |
Sets the spinner range.
Argument | Type | Default | Description |
low | Float | Minimum value. | |
high | Float | Maximum value. |
Sets the read-only state of the spinner.
Argument | Type | Default | Description |
edit | Bool | True | Read-only state. |
Sets the tool tip message.
Argument | Type | Default | Description |
text | String | Tooltip text. |
Sets the spinner value.
Argument | Type | Default | Description |
val | Float | Value. | |
notify | Bool | False | Notification flag. |
Flags for AFX float spinner options.
AFXFLOATSPINNER_CHECKBUTTON | Use a check button instead of a label. |
AFXFLOATSPINNER_RADIOBUTTON | Use a radio button instead of a label. |
AFXFLOATSPINNER_VERTICAL | Orient label or button above spinner. |
AFXFLOATSPINNER_READONLY | Configure spinner to the read-only state. |