|
TStringEditLink is the standard node editor of a TVirtualStringTree.
TStringEditLink = class(TInterfacedObject, IVTEditLink);
TStringEditLink implements the interface IVTEditLink. This is a simple node editor which wraps a TEdit and is not Unicode aware. A virtual string tree will use this node editor if the event OnCreateEditor is not handled and a node must be edited. After the node's text has been edited the event OnNewText will be fired and the application should replace the old text with the new and edited text.
The node editor instance will automatically be destroyed via reference counting when it is not needed anymore. Never destroy it explicitly - except when you know what you are doing.
If you want to modify some aspects of how the node editor works, i.e. suppress some characters or initialize it with a
different text but the node's text, you can inherit your own class from TStringEditLink and return an instance of it in
the OnCreateEditor event.
VirtualTrees
What do you think about this topic? Send feedback!
|