Vcl.Menus.TMainMenu.AutoMerge
Delphi
property AutoMerge: Boolean read FAutoMerge write SetAutoMerge default False;
C++
__property bool AutoMerge = {read=FAutoMerge, write=SetAutoMerge, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMainMenu |
Description
Determines if the main menus of secondary forms merge with the main menu of the main form in non-MDI applications at runtime.
To merge a form's menus with the main menu in the main form, set the AutoMerge property of each main menu you want merged to true. Make sure that the AutoMerge property of the main menu of the main form (the one other menus are merged into) remains false. How menus merge depends on the value of the GroupIndex property for each menu item.
If the application is an MDI application (the FormStyle properties are set so the main form is a parent form and subsequent forms are child forms), menu merging occurs automatically without using the AutoMerge property.