Vcl.Menus.TPopupMenu.PopupComponent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property PopupComponent: TComponent read FPopupComponent write FPopupComponent;

C++

__property System::Classes::TComponent* PopupComponent = {read=FPopupComponent, write=FPopupComponent};

Properties

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

Description

Indicates the component that last displayed the popup menu in response to a right mouse click.

Read PopupComponent to determine which control is currently using the popup menu. In applications where multiple controls share the same pop-up menu, use PopupComponent to determine which of them displayed the menu.

Set PopupComponent to associate a control with the menu before calling the Popup method programmatically to bring up the pop-up menu.

See Also

Code Examples