API:Vcl.RibbonActnCtrls.TRibbonMenuItem.Create
Delphi
constructor Create(AOwner: TComponent); override;
C++
__fastcall virtual TRibbonMenuItem(System::Classes::TComponent* AOwner);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| constructor | public | Vcl.RibbonActnCtrls.pas Vcl.RibbonActnCtrls.hpp |
Vcl.RibbonActnCtrls | TRibbonMenuItem |
Description
Creates an instance of TCustomMenuItem.
Vcl.RibbonActnCtrls.TRibbonMenuItem.Create inherits from Vcl.ActnMenus.TCustomMenuItem.Create. All content below this line refers to Vcl.ActnMenus.TCustomMenuItem.Create.
Creates an instance of TCustomMenuItem.
Calling Create constructs and initializes an instance of TCustomMenuItem. However, you should never attempt to instantiate a TCustomMenuItem. This class is intended solely as a base class from which other control classes descend and you should only call Create to instantiate one of these descendants.
After calling the inherited constructor, Create initializes the control, including the following property settings:
Initializes the TCanvas object for its Canvas property.
When overriding Create, always call the inherited Create method first, then proceed with the control's initialization. Remember to specify the override directive when overriding the Create method.
Note: If a component's constructor allocates resources or memory, also override the destructor to free those resources.