Einzelnen Beitrag anzeigen

Benutzerbild von DeddyH
DeddyH

Registriert seit: 17. Sep 2006
Ort: Barchfeld
27.624 Beiträge
 
Delphi 12 Athens
 
#2

AW: GetDisplayRect return 0 (left,right,top,bottom)

  Alt 28. Apr 2011, 10:38
Zitat:
TBaseVirtualTree.GetDisplayRect Method
Returns the visible region used by the given node in client coordinates.
Pascal
function GetDisplayRect(Node: PVirtualNode; Column: TColumnIndex; TextOnly: Boolean; Unclipped:
Boolean = False): TRect;
Description
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( see NoColumn Constant, page 686) then the entire client width is used before determining the
node's width otherwise the bounds of the particular column are used.
Notes
Column must be a valid column and is used independent of whether the header is visible or not.
Taken from here, hope it helps.
Detlef
"Ich habe Angst vor dem Tag, an dem die Technologie unsere menschlichen Interaktionen übertrumpft. Die Welt wird eine Generation von Idioten bekommen." (Albert Einstein)
Dieser Tag ist längst gekommen
  Mit Zitat antworten Zitat