Vcl.ComCtrls.TStatusPanels.AddItem
Delphi
function AddItem(Item: TStatusPanel; Index: Integer): TStatusPanel;
C++
TStatusPanel* __fastcall AddItem(TStatusPanel* Item, int Index);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TStatusPanels |
Description
Add node object to collection.
The AddItem method is similar to the Add method, but is more flexible.
The Item parameter specifies the panel object to add. If Item is nil, then a new panel object is created automatically. 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.
AddItem returns the panel object added.