TiPlotComponent.AddToolBar

TiPlotComponent See Also

Adds a single toolbar object to the plot.

function AddToolBar : Integer;

Description

Call AddToolBar to add a single toolbar object to the plot. The return value from the function is a unique index used for manipulating the object. Use the ToolBar property to get or set the properties of the legend object.

The index value for this object will decrement by one each time a toolbar object with a lower index value is deleted.

Currently, only one toolbar object is supported at this time and the multiple toolbar interface is for future expansion. The ToolBarCount, AddToolBar, DeleteToolBar, and RemoveAllToolBars are reserved for property editors at this time. Always use an Index of zero when accessing the toolbar.

Example

Delphi

Index := iComponent.AddToolBar;

C++ Builder

Index = iComponent->AddToolBar();

Contents | Index | Previous | Next