|
Returns the visible region used by the given node in client coordinates.
function GetDisplayRect(Node: PVirtualNode; Column: TColumnIndex; TextOnly: Boolean; Unclipped: Boolean = False): TRect;
If the given node cannot be found (because one of its parents is collapsed or it is invisible) then an empty rectangle is returned. If TextOnly is true then only the text bounds are returned, that is, the resulting rectangle's left and right border are updated according to the bidi mode, alignment and text width of the node. If Unclipped is true (which only makes sense if also TextOnly is true) then the calculated text rectangle is not clipped if the text does not entirely fit into the text space. This is special handling needed for hints.
If Column is NoColumn then the entire client width is used before determining the node's width otherwise the bounds of the particular column are used.
Column must be a valid column and is used independent of whether the header is visible or not.
What do you think about this topic? Send feedback!
|