Vcl.Menus.TMenu.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

__fastcall virtual TMenu(System::Classes::TComponent* AOwner);

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenu

Description

Creates an instance of TMenu.

Call Create to create a menu at runtime. Menus placed on forms at design time are created automatically. Create calls the inherited Create method, then sets the initial values for the menu component, including creating an Items property.

The AOwner parameter indicates the component (usually a form) that is responsible for managing the memory associated with the menu.

See Also