FMX.Menus.TMenuBar
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: