Table Tree Property: Events 

You can use the Events property to enable or disable events or groups of events. Disabling events can improve performance, especially for operations that manipulate large chunks of data. Events may also be turned on and off temporarily.

Note that one event cannot be disabled: the DuplicatedKey event is always fired and cannot be turned off.

The following values are available for the Events property:

Value

Description

DisableAllTreeEvents = 0

Disable all events

EnableTableCreate = 1

Fire event after associated table is created.

(Not implemented yet)

EnableTableClear = 2

Fire event after associated table is deleted

(Not implemented yet)

EnableTreeDataChange = 4

Not implemented yet.

EnableNodeInsert = 8

Fire NodeInsert event after a node is inserted.

EnableNodeRemove = 16

Fire NodeRemove event after a node is removed.

EnableBeforeInput = 32

Fire BeforeLabelEdit event before user input.

EnableAfterInput = 64

Fire AfterLabelEdit event after user input.

EnableCollapse = 128

Fire Collapse event before a node is collapsed.

EnableExpand = 256

Fire Expand event before a node is expanded.

EnableClicks = 512

Fire Click, DblClick, ItemClick and ItemDblClick events.

EnableKeyboardEvents =1024

Fire KeyUp and KeyDown events.

EnableSelectionEvent = 2048

Fire SelChange event.

EnableDragDropEvents = 4096

Fire DragSourceFill, DragComplete, DropEnter and Drop events.

EnableTreeError = 16384

Fire Error event after an error occurred.

EnableStandardTreeEvents

Enable summary of standard events.

EnableAllTreeEvents = 32767

Enable all events.

All values may be combined through and or or operations.

‘ Enable NodeInsert and NodeRemove event

MyControl.Events = MyControl.Events or EnableOnNodeInsert or _ EnableOnNodeRemove

 

‘ Disable NodeInsert and NodeRemove event

MyControl.Events = MyControl.Events and not _

(EnableOnNodeInsert or EnableOnNodeRemove)