Vcl.ComCtrls.TStatusPanels.Insert
Delphi
function Insert(Index: Integer): TStatusPanel;
C++
HIDESBASE TStatusPanel* __fastcall Insert(int Index);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TStatusPanels |
Description
Add new panel object to collection.
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.