IVTEditLink Interface

Virtual Tree View

Interface which is used for communication between the treeview and a node editor.

Pascal
IVTEditLink = interface;
Description

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.

Group
Members
Methods

This function will be called by the virtual tree when the editing starts.
This function will be called by the virtual tree when the current editing is about to be cancelled.
This function will be called by the virtual tree when the current editing is being finished.
The virtual tree can use this function to get the current bounding rect of the node editor.
This function is called by a virtual tree to initialize the node editor.
This function is used to forward messages being directed to the virtual tree.
The virtual tree calls this function to initialize the bounding rectangle of the node editor.

Legend

public
Method

Class Hierarchy
File

VirtualTrees

Links
What do you think about this topic? Send feedback!