RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStatusPanels.Insert Method

Add new panel object to collection.

Pascal
function Insert(Index: Integer): TStatusPanel;
C++
__fastcall TStatusPanel Insert(int Index);

The Insert method creates a new panel object and adds it the the collection. To determine the object type at runtime, define the status bar's OnCreatePanelClass event handler. If this event handler is not defined, the new panel object is an instance of TStatusPanel

The Index parameter determines the Index property of the panel object. If Index is negative, the panel object is added at the end of the collection. 

Insert returns the new panel object. 

 

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