TTreeNode.DisplayTextRight function
Returns the horizontal position for the right edge of the Text on the tree node.
Declaration
function DisplayTextRight: IntegerFunction result
Horizontal coordinate where the Text for the tree node ends.
Description
DisplayTextRight is a method used to determine the horizontal
coordinate for the right-hand edge of the Text displayed for the tree node. If
a TCustomTreeview instance has not been assigned in the tree node, the return
value contains the result from the DisplayTextLeft method. Otherwise, the
position is calculated using the left-hand edge for the Text, the width
returned from the TextWidth method in the control Canvas, and padding derived
from the Indent used on the TreeView control.
DisplayTextRight is used in the DisplayRect method in TTreeNode. It is also used in TCustomTreeView methods including GetNodeAt, GetNodeWithExpandSignAt, GetHitTestInfoAt, and MouseDown.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
