TTreeNode.DisplayRect function
Returns the rectangle where the tree node is displayed on its TreeView control.
Declaration
function DisplayRect(TextOnly: Boolean): TRectArguments
TextOnly | Set to True if the rectangle should contain the display area for its Text only. |
Function result
TRect instance where the tree node is displayed on its tree view control.
Description
DisplayRect returns the coordinates for rectangle containing
the content for the tree node. The Left, Top, Right, and Bottom members in the
return value are adjusted for the BorderWidth used on the TreeView control for
the node.
When TextOnly is set to True, the return value contains the
coordinates where the text for the node is located on the TreeView control.
The Left and Right members in the rectangle are set to the values returned
from the DisplayTextLeft and DisplayTextRight methods.
The return value contains an empty rectangle (with all members set to 0) if TreeView has not been assigned for the node.
DisplayRect is called from methods that include:
- TCustomTreeview.DoPaintNode
- TCustomTreeview.GetInsertMarkAt
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
