Sign in Join
FPDoc Onlineexperiment

TTreeNode.DisplayTextRight function

Member of TTreeNodepublicIn unit ComCtrls

Returns the horizontal position for the right edge of the Text on the tree node.

Declaration

pascal
function DisplayTextRight: Integer

Function 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.