RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomStatusBar.CreatePanel Method

Creates a new panel that can be added to the Panels property.

Pascal
function CreatePanel: TStatusPanel; virtual;
C++
virtual __fastcall TStatusPanel CreatePanel();

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. 

 

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