Vcl.ComCtrls.TToolBar.Menu

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Menu: TMainMenu read FMenu write SetMenu;

C++

__property Vcl::Menus::TMainMenu* Menu = {read=FMenu, write=SetMenu};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TToolBar

Description

Causes the toolbar to populate itself with buttons that correspond to items in a 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.

See Also