Menus.TPopupMenu.OnPopup
From RAD Studio VCL Reference
Contents |
Delphi Information
From Menus.pas
property OnPopup: TNotifyEvent read FOnPopup write FOnPopup;
Unit: Menus
Type: event
Visibility: published
Member Of: TPopupMenu
C++ Information
From Menus.hpp
__property TNotifyEvent OnPopup;
Unit: Menus
Type: property
Visibility: public
Member Of: TPopupMenu
Description
Occurs just before the pop-up menu appears.
Write an OnPopup event handler to take specific action just before the pop-up menu appears. For example, use an OnPopup event handler to set the Checked, Enabled, or Visible property of individual items in the menu so that they are appropriate to the PopupComponent.
See Also
Code Samples