Vcl.ComCtrls.TCustomStatusBar.CreatePanel
Delphi
function CreatePanel: TStatusPanel; virtual;
C++
virtual TStatusPanel* __fastcall CreatePanel();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomStatusBar |
Description
Creates a new panel that can be added to the Panels property.
The TStatusPanels object that implements the Panels property calls CreatePanel when it needs to add a new panel. CreatePanel generates an OnCreatePanelClass event to determine the class of the new TStatusPanel object, and then creates an instance of that class. CreatePanel returns the new status panel instance.