Vcl.OleCtnrs.TOleContainer.GetPopupMenu
Delphi
function GetPopupMenu: TPopupMenu; override;
C++
DYNAMIC Vcl::Menus::TPopupMenu* __fastcall GetPopupMenu();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.OleCtnrs.pas Vcl.OleCtnrs.hpp |
Vcl.OleCtnrs | TOleContainer |
Description
Returns the pop-up menu associated with the control.
Vcl.OleCtnrs.TOleContainer.GetPopupMenu inherits from Vcl.Controls.TControl.GetPopupMenu. All content below this line refers to Vcl.Controls.TControl.GetPopupMenu.
Returns the pop-up menu associated with the control.
Call GetPopupMenu to find the pop-up menu associated with the control. Override GetPopupMenu to change which pop-up menu is associated with the control or to specify different pop-up menus depending on the state of the control.
GetPopupMenu returns the value of the Popup property.