API:Vcl.ComCtrls.TStatusBar.OnDrawPanel
Delphi
property OnDrawPanel: TDrawPanelEvent read GetOnDrawPanel write SetOnDrawPanel;
C++
__property TDrawPanelEvent OnDrawPanel = {read=GetOnDrawPanel, write=SetOnDrawPanel};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TStatusBar |
Description
Occurs when a status panel needs to be redrawn.
Vcl.ComCtrls.TStatusBar.OnDrawPanel inherits from Vcl.ComCtrls.TCustomStatusBar.OnDrawPanel. All content below this line refers to Vcl.ComCtrls.TCustomStatusBar.OnDrawPanel.
Occurs when a status panel needs to be redrawn.
The OnDrawPanel event occurs when a status panel needs to be redisplayed—for example, when the user resizes the status bar. OnDrawPanel occurs only if the status panel's Style property is set to psOwnerDraw.
OnDrawPanel is an event handler of type Vcl.ComCtrls.TCustomDrawPanelEvent.
See Also
Code Examples