Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.DoContextPopup

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DoContextPopup(MousePos: TPoint; var Handled: Boolean); dynamic;

C++

DYNAMIC void __fastcall DoContextPopup(const System::Types::TPoint &MousePos, bool &Handled);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Is an OnContextPopup event dispatcher.

OnContextPopup calls any event handler attached to the OnContextPopup event. When creating a component that descends from TControl override OnContextPopup to provide other responses in addition to the inherited event-handler call when the user invokes the control's context menu.

MousePos indicates the position where the user right-clicked the control. If the user invoked the context menu using the keyboard, MousePos is (-1,-1).

Handled returns a Boolean value indicating whether the control should continue with its default response to the user action.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance