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.

Consts

wEvent_TreeFirst = 32770
wEvent_TreeBeginDrag = 32771
wEvent_TreeBeginRdrag = 32772
wEvent_TreeEndDrag = 32773
wEvent_TreeBeginLabelEdit = 32774
wEvent_TreeEndLabelEdit = 32775
wEvent_TreeDeleteItem = 32776
wEvent_TreeItemActivated = 32777
wEvent_TreeItemCollapsed = 32778
wEvent_TreeItemCollapsing = 32779
wEvent_TreeItemExpanded = 32780
wEvent_TreeItemExpanding = 32781
wEvent_TreeItemRightClick = 32782
wEvent_TreeSelChanged = 32783
wEvent_TreeSelChanging = 32784
wEvent_TreeItemMenu = 32785
wEvent_TreeLast = 32786

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.