
Tree list Widget


Construct a tree list with nvis visible items; the tree list is initially empty.
| Argument | Type | Default | Description |
| p | FXComposite | ||
| nvis | Int | ||
| tgt | FXObject | None | |
| sel | Int | 0 | |
| opts | Int | TREELIST_NORMAL | |
| x | Int | 0 | |
| y | Int | 0 | |
| w | Int | 0 | |
| h | Int | 0 |

Append new item with given text and optional icon, and user-data pointer after to other item.
| Argument | Type | Default | Description |
| other | FXTreeItem | ||
| text | String | ||
| oi | FXIcon | None | |
| ci | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Append new item with given text and optional icon, and user-data pointer after to other item.
| Argument | Type | Default | Description |
| other | FXTreeItem | ||
| text | String | ||
| oi | FXIcon | None | |
| ci | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Append new [possibly subclassed] item after to other item.
| Argument | Type | Default | Description |
| other | FXTreeItem | ||
| item | FXTreeItem | ||
| notify | Bool | False |

Prepend new item with given text and optional icon, and user-data pointer prior to other item.
| Argument | Type | Default | Description |
| other | FXTreeItem | ||
| text | String | ||
| oi | FXIcon | None | |
| ci | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Prepend new item with given text and optional icon, and user-data pointer prior to other item.
| Argument | Type | Default | Description |
| other | FXTreeItem | ||
| text | String | ||
| oi | FXIcon | None | |
| ci | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Prepend new [possibly subclassed] item prior to other item.
| Argument | Type | Default | Description |
| other | FXTreeItem | ||
| item | FXTreeItem | ||
| notify | Bool | False |

Prepend new item with given text and optional icon, and user-data pointer as first child of p.
| Argument | Type | Default | Description |
| p | FXTreeItem | ||
| text | String | ||
| oi | FXIcon | None | |
| ci | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Prepend new item with given text and optional icon, and user-data pointer as first child of p.
| Argument | Type | Default | Description |
| p | FXTreeItem | ||
| text | String | ||
| oi | FXIcon | None | |
| ci | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Prepend new [possibly subclassed] item as first child of p.
| Argument | Type | Default | Description |
| p | FXTreeItem | ||
| item | FXTreeItem | ||
| notify | Bool | False |

Append new item with given text and optional icon, and user-data pointer as last child of p.
| Argument | Type | Default | Description |
| p | FXTreeItem | ||
| text | String | ||
| oi | FXIcon | None | |
| ci | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Append new item with given text and optional icon, and user-data pointer as last child of p.
| Argument | Type | Default | Description |
| p | FXTreeItem | ||
| text | String | ||
| oi | FXIcon | None | |
| ci | FXIcon | None | |
| ptr | String | None | |
| notify | Bool | False |

Append new [possibly subclassed] item as last child of p.
| Argument | Type | Default | Description |
| p | FXTreeItem | ||
| item | FXTreeItem | ||
| notify | Bool | False |

Remove all items from list.
| Argument | Type | Default | Description |
| notify | Bool | False |

Close item.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| notify | Bool | False |

Collapse tree.
| Argument | Type | Default | Description |
| tree | FXTreeItem | ||
| notify | Bool | False |

Create server-side resources.
Reimplemented from FXComposite.
Reimplemented in FXDirList.

Deselect item.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| notify | Bool | False |

Destroy server-side resources.
Reimplemented from FXComposite.
Reimplemented in FXDirList.

Detach server-side resources.
Reimplemented from FXComposite.
Reimplemented in FXDirList.

Expand tree.
| Argument | Type | Default | Description |
| tree | FXTreeItem | ||
| notify | Bool | False |

Extend selection from anchor item to item.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| notify | Bool | False |

Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity.
| Argument | Type | Default | Description |
| text | String | ||
| start | FXTreeItem | None | |
| flags | Int | SEARCH_FORWARD| SEARCH_WRAP |

Returns the item checked state.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return item's closed icon.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return item user-data pointer.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return item's open icon.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return item hit code: 0 outside, 1 icon, 2 text, 3 box.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| x | Int | ||
| y | Int |

Return True if item is current.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return True if item is enabled.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return True if item expanded.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return True if item is a leaf-item, i.e. has no children.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return True if item opened.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return True if item is selected.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Return True if item is visible.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Deselect all items.
| Argument | Type | Default | Description |
| notify | Bool | False |

Scroll to make item visible.
| Argument | Type | Default | Description |
| item | FXTreeItem |

Move item after other.
| Argument | Type | Default | Description |
| other | FXTreeItem | ||
| item | FXTreeItem |

Move item before other.
| Argument | Type | Default | Description |
| other | FXTreeItem | ||
| item | FXTreeItem |

Open item.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| notify | Bool | False |

Remove item.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| notify | Bool | False |

Remove items in range [fm, to] inclusively.
| Argument | Type | Default | Description |
| fm | FXTreeItem | ||
| to | FXTreeItem | ||
| notify | Bool | False |

Reparent item under parent p.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| p | FXTreeItem |

Select item.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| notify | Bool | False |

Change current item.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| notify | Bool | False |

Set the status line help text for this list.
| Argument | Type | Default | Description |
| text | String |

Sets the item checked state. Valid states are True, False and MAYBE. Returns True if the check value has changed, False otherwise.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| check | Int | ||
| notify | Bool | False |

Chance item's closed icon.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| icon | FXIcon |

Change item user-data pointer.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| ptr | String |

Change item's open icon.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| icon | FXIcon |

Change item's text.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| text | String |

Change number of visible items.
| Argument | Type | Default | Description |
| nvis | Int |

Change selected text background.
| Argument | Type | Default | Description |
| clr | FXColor |

Change selected text color.
| Argument | Type | Default | Description |
| clr | FXColor |

Toggle item selection.
| Argument | Type | Default | Description |
| item | FXTreeItem | ||
| notify | Bool | False |

Tree list styles
| TREELIST_EXTENDEDSELECT | Extended selection mode allows for drag-selection of ranges of items. |
| TREELIST_SINGLESELECT | Single selection mode allows up to one item to be selected. |
| TREELIST_BROWSESELECT | Browse selection mode enforces one single item to be selected at all times. |
| TREELIST_MULTIPLESELECT | Multiple selection mode is used for selection of individual items. |
| TREELIST_AUTOSELECT | Automatically select under cursor. |
| TREELIST_SHOWS_LINES | Lines shown. |
| TREELIST_SHOWS_BOXES | Boxes to expand shown. |
| TREELIST_ROOT_BOXES | Display root boxes also. |
| TREELIST_CHECK_BOXES | Display check boxes. |
| TREELIST_PROPAGATE_CHECKS | Propagate checked state to children and parents. |