Skip to main content

TcxCustomShellTreeView.OnEditing Event

Enables you to prohibit end-users from editing specific shell item captions.

Declaration

property OnEditing: TTVEditingEvent read; write;

Remarks

This event occurs before in-place text editing is initiated for the selected tree node.

Sender specifies the shell tree view that raised the event.

Node specifies the tree node that corresponds to the shell item whose caption is to be edited. Normally, Node is the currently selected tree node.

Pass False as the AllowEdit parameter to cancel editing, prohibiting end-users from renaming the Node.

You can prohibit end-users from renaming all item captions via the ReadOnly property. To override end-user changes to shell item captions, handle the OnEdited event.

Note

Generally, only the shell items marked with the corresponding Capabilities flag can be renamed.

See Also