TStringEditLink Class

Virtual Tree View

TStringEditLink is the standard node editor of a TVirtualStringTree.

Pascal
TStringEditLink = class(TInterfacedObject, IVTEditLink);
Description

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. 

 

Remarks

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.

Group
Members
Properties

Not documented.

Methods

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

IVTEditLink Interface

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
Property
Method
virtual

Class Hierarchy
File

VirtualTrees

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