Vcl.ComCtrls.TCustomStatusBar.DrawPanel
Delphi
procedure DrawPanel(Panel: TStatusPanel; const Rect: TRect); dynamic;
C++
DYNAMIC void __fastcall DrawPanel(TStatusPanel* Panel, const System::Types::TRect &Rect);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomStatusBar |
Description
Draws an owner-drawn panel.
DrawPanel is called automatically for each status panel that has a Style of psOwnerDraw. If there is an event handler for the OnDrawPanel event, DrawPanel calls the OnDrawPanel event handler. Otherwise, it fills the panel background using the color specified by the Color property.
Panel is the owner drawn status panel that needs to be drawn.
Rect indicates the dimensions of that panel on the status bar's canvas.