API:Vcl.Menus.TPopupMenu.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

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

Properties

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

Description

Creates an instance of TMenu.

Vcl.Menus.TPopupMenu.Create inherits from Vcl.Menus.TMenu.Create. All content below this line refers to Vcl.Menus.TMenu.Create.

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