TdxBarManager.AddToolBar(Boolean,Boolean) Method
Creates a new toolbar instance and adds it to the current bar manager.
Declaration
function AddToolBar(AIsMainMenu: Boolean = False; ANeedEditCaption: Boolean = False): TdxBar;
Parameters
Name | Type |
---|---|
AIsMainMenu | Boolean |
ANeedEditCaption | Boolean |
Returns
Type |
---|
TdxBar |
Remarks
The AddToolBar method returns a reference to an instance of the newly created toolbar.
AIsMainMenu specifies whether a new toolbar will represent the main menu. Set AIsMainMenu to True to make the new toolbar a main menu.
ANeedEditCaption specifies whether the Add Toolbar dialog appears allowing an end-user to decide whether the new toolbar will be created and its caption entered. Set ANeedEditCaption to True to display the Add Toolbar dialog. Otherwise, a new toolbar will be created automatically with the default caption.
See Also