These events are generated by wTreeCtrl.
Events: | wTreeEvent | Description |
wEvent_TreeBeginDrag | Begin dragging with the left mouse button. This event is vetoed by default. Call allow() To enable dragging. |
wEvent_TreeBeginRdrag | Begin dragging with the right mouse button. This event is vetoed by default. Call allow() To enable dragging. |
wEvent_TreeEndDrag | End dragging with the left or right mouse button. |
wEvent_TreeBeginLabelEdit | Begin editing a label. This event can be vetoed. |
wEvent_TreeEndLabelEdit | Finish editing a label. This event can be vetoed. |
wEvent_TreeDeleteItem | An item was deleted. |
wEvent_TreeItemActivated | The item has been activated (ENTER or double click). |
wEvent_TreeItemCollapsed | The item has been collapsed. |
wEvent_TreeItemCollapsing | The item is being collapsed. This event can be vetoed. |
wEvent_TreeItemExpanded | The item has been expanded. |
wEvent_TreeItemExpanding | The item is being expanded. This event can be vetoed. |
wEvent_TreeItemRightClick | The user has clicked the item with the right mouse button. |
wEvent_TreeSelChanged | Selection has changed. |
wEvent_TreeSelChanging | Selection is changing. This event can be vetoed. |
wEvent_TreeItemMenu | The context menu for the selected item has been requested, either by a right click or by using the menu key. |
|
method getItem(self: wTreeEvent): wTreeItem {...}{.inline, raises: [], tags: [].}
-
Returns the item.
method getOldItem(self: wTreeEvent): wTreeItem {...}{.inline, raises: [], tags: [].}
-
Returns the old item (valid for wEvent_TreeSelChanging, wEvent_TreeSelChanged, and wEvent_TreeEndDrag events).
method getText(self: wTreeEvent): string {...}{.inline, raises: [], tags: [].}
-
The (new) item label for wEvent_TreeEndLabelEdit event.
method getInsertMark(self: wTreeEvent): int {...}{.inline, raises: [], tags: [].}
-
Retrun insert mark position (valid for wEvent_TreeEndDrag event).
method getPoint(self: wTreeEvent): wPoint {...}{.inline, raises: [], tags: [].}
-
Returns the position of the mouse pointer if the event is a drag or menu-context event.