API:Vcl.Menus.TPopupMenu.Create
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
Vcl.Menus.TPopupMenu.Create inherits from Vcl.Menus.TMenu.Create. All content below this line refers to Vcl.Menus.TMenu.Create.
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.