This class provides a scrolled list of groups of options that may be toggled on or off as a group or individually.
Constructor.
Argument | Type | Default | Description |
p | FXComposite | Parent widget. | |
nvis | Int | Number of visible items of list. | |
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_SPACING | Left padding. |
pr | Int | DEFAULT_SPACING | Right padding. |
pt | Int | DEFAULT_SPACING | Top padding. |
pb | Int | DEFAULT_SPACING | Bottom padding. |
hs | Int | DEFAULT_SPACING | Horizontal spacing. |
vs | Int | DEFAULT_SPACING | Vertical spacing. |
Adds a new item with the given text as the first item of the list.
Argument | Type | Default | Description |
text | String | Item text. | |
tgt | FXObject | None | Item target. |
msg | Int | 0 | Item selector. |
Adds a new item with the given text as the last item of the list.
Argument | Type | Default | Description |
text | String | Item text. | |
tgt | FXObject | None | Item target. |
msg | Int | 0 | Item selector. |
Computes the item size to be used as a base for default height computation.
Argument | Type | Default | Description |
p | AFXOptionTreeItem | None | Item. |
Creates a new tree item object.
Argument | Type | Default | Description |
text | String | Item text. | |
tgt | FXObject | Item target. | |
msg | Int | Item selector. |
Moves contents to the specified position.
Argument | Type | Default | Description |
x | Int | X location. | |
y | Int | Y location |
Removes the given item from the list. This method does nothing if the given item does not exist.
Argument | Type | Default | Description |
item | AFXOptionTreeItem | Item to be removed. |
Sets the horizontal inter-child spacing.
Argument | Type | Default | Description |
hs | Int | Horizontal spacing. |
Sets the number of visible items.
Argument | Type | Default | Description |
nvis | Int | Number of visible items. |
Sets the bottom padding.
Argument | Type | Default | Description |
pb | Int | Bottom padding. |