Vcl.Menus.TPopupMenu.AutoPopup

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AutoPopup: Boolean read FAutoPopup write FAutoPopup default True;

C++

__property bool AutoPopup = {read=FAutoPopup, write=FAutoPopup, default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TPopupMenu

Description

Determines whether the pop-up menu appears automatically when the user clicks the right mouse button.

Set AutoPopup to true to cause the pop-up menu to appear automatically when the user clicks the right mouse button on a control that has the pop-up menu specified as its PopupMenu property. The application key present on keyboards specifically designed for 32-bit Windows will also show this menu when pressed.

Set AutoPopup to false if the appearance of the pop-up menu should be controlled programmatically. To display a pop-up menu when AutoPopup is false, use the Popup method.

See Also

Code Examples