RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPopupMenu Class

TPopupMenu encapsulates the properties, methods, and events of a pop-up menu.

Pascal
TPopupMenu = class(TMenu);
C++
class TPopupMenu : public TMenu;

Menus

Use TPopupMenu to define the pop-up menu that appears when the user clicks on a control with the right mouse button. To make a pop-up menu available, assign the TPopupMenu object to the control's PopupMenu property.

Tip: To create a popup menu that users can configure at runtime, use the TStandardMenuPopup component with an action manager instead.
Note: If the popup menu's ParentBiDiMode is true, the popup menu's BiDiMode is set to the BiDiMode of the control that activates it. If a control cannot be found, the BiDiMode is set to the value of the Application object's BiDiMode. The popup menu's BiDiMode affects all of its menu items.
 

TMainMenu 

TMenuItem 

NewPopupMenu 

TStandardMenuPopup 

TActionManager 

Providing a Pop-up Menu 

Setting Up Action Bands

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!