|
Interface which is used for communication between the treeview and a node editor.
IVTEditLink = interface;
Due to the virtual nature of the tree it is necessary to supply a kind of plug in interface for application defined node editors. TCustomVirtualStringTree is the first class which implements a node editor. This is just a generic editor to edit a node's caption just like TTreeview does it. Because of the lack of support under Win9x system this editor only can edit ANSI text. You have to create an own editor to make also Unicode string editing available for node captions.
All node editors must implement this interface to allow the treeview to communicate with the node editor. Node editors are small components or forms. If a node shall be edited (for instance when the user presses F2) the treeview will fire the event OnCreateEditor. The application must determine which node editor must be used for the data in the given node and column. Then it creates and returns an instance of the appropriate node editor.
The life cycle of the node editor object is handled via reference counting. This means that the application must not destroy the node editor explicitly - this will happen automatically when the node editor is not used anymore.
VirtualTrees
What do you think about this topic? Send feedback!
|