Vcl.Controls.TControl.PopupMenu

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property PopupMenu: TPopupMenu read FPopupMenu write SetPopupMenu;

C++

__property Vcl::Menus::TPopupMenu* PopupMenu = {read=FPopupMenu, write=SetPopupMenu};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Specifies the pop-up menu associated with the control.

Assign a value to PopupMenu to make a pop-up menu appear when the user selects the control and clicks the right mouse button. If the TPopupMenu's AutoPopup property is True, the pop-up menu appears automatically. If the menu's AutoPopup property is False, display the menu with a call to its Popup method from the control's OnContextPopup event handler.

See Also

Code Examples