This class is a tree widget with check buttons.
Constructor creating a top-level (root) tree item.
Argument | Type | Default | Description |
p | FXComposite | Parent widget. | |
label | String | Label text. | |
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_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. |
Creates a new tree item as a sibling after (below) the tree item.
Argument | Type | Default | Description |
label | String | Item label. | |
tgt | FXObject | None | Item target. |
sel | Int | 0 | Item selector. |
Creates a new tree item as a sibling before (above) the tree item.
Argument | Type | Default | Description |
label | String | Item label. | |
tgt | FXObject | None | Item target. |
sel | Int | 0 | Item selector. |
Creates a new tree item as the first child of the tree item.
Argument | Type | Default | Description |
label | String | Item label. | |
tgt | FXObject | None | Item target. |
sel | Int | 0 | Item selector. |
Creates a new tree item as the last child of the tree item.
Argument | Type | Default | Description |
label | String | Item label. | |
tgt | FXObject | None | Item target. |
sel | Int | 0 | Item selector. |
Returns the child tree at the given index.
Argument | Type | Default | Description |
index | Int | Index. |
Checks whether the given tree is a child of this object.
Argument | Type | Default | Description |
tree | AFXOptionTreeItem | Item. |
Returns the default width of the tree item.
Reimplemented from FXPacker.
Returns the parent tree widget, or NULL if the tree item is the root.
Reimplemented from FXWindow.
Returns the index of an immediate child tree, or -1 if not found.
Argument | Type | Default | Description |
tree | AFXOptionTreeItem | Item. |
Checks whether this object is contained in the given tree.
Argument | Type | Default | Description |
tree | AFXOptionTreeItem | Item. |
Sets the size of the arrow button for this object and all its children.
Argument | Type | Default | Description |
size | Int | Size. |
Sets the check state of the tree item and its children, optionally notifying targets.
Argument | Type | Default | Description |
check | Int | Check state. | |
notify | Bool | Notification flag. | |
propagating | Bool | False | Propagation flag. |
Sets the check state of the tree item and its children.
Argument | Type | Default | Description |
check | Int | True | Check state. |
Sets the label text shown in the tree item's check button.
Argument | Type | Default | Description |
txt | String | Label text. |