RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomStatusBar.GetPanelClass Method

Returns the class to use for implementing the panels of the status bar.

Pascal
function GetPanelClass: TStatusPanelClass; virtual;
C++
virtual __fastcall TStatusPanelClass GetPanelClass();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!