RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCategoryPanel.DrawHeader Method (HDC)

Calls other category panel methods to display the entire header of the category panel in the device context provided.

Pascal
procedure DrawHeader(DC: HDC); virtual; overload;
C++
virtual __fastcall DrawHeader(HDC DC);

This overload of DrawHeader uses the device context provided by the DC parameter and sets the rectangles used to display the text and glyphs of the category panel. DrawHeader then displays the header background, the header chevron and the header caption. If the category panel is collapsed DrawHeader displays the category panel in the collapsed state.  

DrawHeader is a protected method and so can only be called in the implementation of an extended class of TCustomCategoryPanel

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!