FMX.Menus.TMenuBar

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Controls.TStyledControlFMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTMenuBar

Delphi

TMenuBar = class(TStyledControl, IItemsContainer, INativeControl, IMenuView, IGlyph)

C++

class PASCALIMPLEMENTATION TMenuBar : public Fmx::Controls::TStyledControl

Properties

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

Description

Represents an editable menu bar.

TMenuBar describes the structure of a menu bar that can be moved, resized, and edited. TMenuBar 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 TMenuBar.

Use Items and ItemsCount to retrieve information about menu items.

TMenuBar:

TMenuBar.png

See Also