RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.Menu Property

Causes the toolbar to populate itself with buttons that correspond to items in a menu.

Pascal
property Menu: TMainMenu;
C++
__property TMainMenu Menu;

Use the menu property to populate the tool bar to match a menu component. Setting Menu causes the toolbar to delete all of its current buttons and replace them with tool buttons that match the items in the specified menu component. 

In applications that use Menu to populate the toolbar, do not change the Buttons property by adding, deleting, or editing toolbar buttons.

Note: The toolbar does not dynamically track any changes to the menu specified by Menu. That is, it sets the tool buttons to reflect the set of items in the menu at the point when the application sets this property, and ignores any subsequent changes.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!