Vcl.ComCtrls.TCustomStatusBar.GetPanelClass
Delphi
function GetPanelClass: TStatusPanelClass; virtual;
C++
virtual TStatusPanelClass __fastcall GetPanelClass();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomStatusBar |
Description
Returns the class to use for implementing the panels of the status bar.
The CreatePanel method calls GetPanelClass to determine the default class to use when creating new panels for the status bar. This class can then be changed by an OnCreatePanelClass event handler.
TCustomStatusBar returns TStatusPanel as the default class for status bar panels. Descendants that use a TStatusPanel descendant by default can override this method to indicate a different default class.