Vcl.ExtCtrls.TCustomCategoryPanel.DrawHeader

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DrawHeader; overload; virtual;
procedure DrawHeader(DC: HDC); overload; virtual;

C++

virtual void __fastcall DrawHeader()/* overload */;
virtual void __fastcall DrawHeader(HDC DC)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TCustomCategoryPanel

Description

Calls other category panel methods to display the entire header of the category panel.

This HDC overload of DrawHeader uses the device context passed in as a 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.

If the HDC parameter is not provided, the device context is derived using the Handle property inherited from TWinControl and calling the GetWindowDC (MSDN) function. The non-HDC overload then calls the HDC overload.

Both overloads of DrawHeader are protected methods and so can only be called in the implementation of an extended class of TCustomCategoryPanel.

See Also