RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStatusPanels.AddItem Method

Add node object to collection.

Pascal
function AddItem(Item: TStatusPanel; Index: Integer): TStatusPanel;
C++
__fastcall TStatusPanel AddItem(TStatusPanel Item, int Index);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!