Vcl.Menus.TPopupMenu.OnPopup

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnPopup: TNotifyEvent read FOnPopup write FOnPopup;

C++

__property System::Classes::TNotifyEvent OnPopup = {read=FOnPopup, write=FOnPopup};

Properties

Type Visibility Source Unit Parent
event published
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus 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 Examples