FMX.Menus.TMainMenu

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTMainMenu

Delphi

TMainMenu = class(TFmxObject, IItemsContainer, INativeControl, IGlyph)

C++

class PASCALIMPLEMENTATION TMainMenu : public Fmx::Types::TFmxObject

Properties

Type Visibility Source Unit Parent
class public
FMX.Menus.pas
FMX.Menus.hpp
FMX.Menus FMX.Menus

Description

Describes the structure of the form's main menu.

Use TMainMenu to describe the structure of the form's main menu. TMainMenu is composed of TMenuItems.

Menu items can be added in several ways:

  • To add a menu item at design time, do any of the following:
    • Right-click the component and select Add Item from the context menu.
    • Double-click the component and click the Add Item button on the Items Designer.
    • Right-click the component, select Items Editor from the context menu, and then click the Add Item button.
  • To add a menu item at run time, use the AddObject procedure of the TMainMenu.

See Also