IVTEditLink.SetBounds Method

Virtual Tree View

The virtual tree calls this function to initialize the bounding rectangle of the node editor.

Pascal
procedure SetBounds(R: TRect); stdcall;
Description

This function is usually called after PrepareEdit and before BeginEdit in order to place the node editor exactly over the node which is about to be edited. Use the R parameter to set the bounding rect of the editor. If the treeview is in grid mode R will be equal to the cell rectangle of the to be edited cell. Otherwise R is the bounding rectangle of the actual node text.

Notes

SetBounds is also a method of TControl. Hence if your node editor is implemented by a descendant of TControl you must use 

a method resolution clause to avoid a name clash. The clause can look similar to this: 

 

procedure EditLinkSetBounds(R: TRect); stdcall;
procedure IVTEditLink.SetBounds = EditLinkSetBounds;
Interface
Links
What do you think about this topic? Send feedback!