Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBarManager.AddToolBar(Boolean,Boolean) Method

Creates a new toolbar instance and adds it to the current bar manager.

#Declaration

Delphi
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