wTreeEvent

These events are generated by wTreeCtrl.

Superclass:wCommandEvent
Seealso:wTreeCtrl
Events:
wTreeEventDescription
wEvent_TreeBeginDragBegin dragging with the left mouse button. This event is vetoed by default. Call allow() To enable dragging.
wEvent_TreeBeginRdragBegin dragging with the right mouse button. This event is vetoed by default. Call allow() To enable dragging.
wEvent_TreeEndDragEnd dragging with the left or right mouse button.
wEvent_TreeBeginLabelEditBegin editing a label. This event can be vetoed.
wEvent_TreeEndLabelEditFinish editing a label. This event can be vetoed.
wEvent_TreeDeleteItemAn item was deleted.
wEvent_TreeItemActivatedThe item has been activated (ENTER or double click).
wEvent_TreeItemCollapsedThe item has been collapsed.
wEvent_TreeItemCollapsingThe item is being collapsed. This event can be vetoed.
wEvent_TreeItemExpandedThe item has been expanded.
wEvent_TreeItemExpandingThe item is being expanded. This event can be vetoed.
wEvent_TreeItemRightClickThe user has clicked the item with the right mouse button.
wEvent_TreeSelChangedSelection has changed.
wEvent_TreeSelChangingSelection is changing. This event can be vetoed.
wEvent_TreeItemMenuThe context menu for the selected item has been requested, either by a right click or by using the menu key.

Methods

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.