TVirtualTreeColumn.ComputeHeaderLayout Method

Virtual Tree View

Calculates the layout of a column header.

Pascal
procedure ComputeHeaderLayout(DC: HDC; const Client: TRect; UseHeaderGlyph: Boolean; UseSortGlyph: Boolean; var HeaderGlyphPos: TPoint; var SortGlyphPos: TPoint; var TextBounds: TRect); virtual;
Description

The layout of a column header is determined by a lot of factors. This method takes them all into account and determines all necessary positions and bounds: 

 

  • for the header text
  • the header glyph
  • the sort glyph
Class
Links
What do you think about this topic? Send feedback!