TBaseVirtualTree.OnAdvancedHeaderDraw Event

Virtual Tree View

Header paint support event.

Pascal
property OnAdvancedHeaderDraw: TVTAdvancedHeaderPaintEvent;
Description

The OnAdvancedHeaderDraw event is used when owner draw is enabled for the header and a column is set to owner draw mode. It can be used to custom draw only certain parts of the header instead the whole thing. A good example for this event is customizing the background of the header for only one column. With the standard custom draw method (OnHeaderDraw) you are in an all-or-nothing situation and have to paint everything in the header including the text, images and sort direction indicator. OnAdvancedHeaderDraw however uses OnHeaderDrawQueryElements to ask for the elements the application wants to draw and acts accordingly. 

 

See Also
Class
Links
What do you think about this topic? Send feedback!