Vcl.ActnMenus.TCustomActionMenuBar.MouseActivate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MouseActivate(Button: TMouseButton; Shift: TShiftState;  X, Y: Integer; HitTest: Integer): TMouseActivate; override;

C++

DYNAMIC System::Uitypes::TMouseActivate __fastcall MouseActivate(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y, int HitTest);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ActnMenus.pas
Vcl.ActnMenus.hpp
Vcl.ActnMenus TCustomActionMenuBar

Description

Triggers a TMouseActivateEvent event.

Vcl.ActnMenus.TCustomActionMenuBar.MouseActivate inherits from Vcl.Controls.TControl.MouseActivate. All content below this line refers to Vcl.Controls.TControl.MouseActivate.

Triggers a TMouseActivateEvent event.

Use MouseActivate to trigger a TMouseActivateEvent event with the given parameters.

The following table explains the meaning of each parameter:



Parameter Meaning

Button

The mouse button that is pressed.

Shift

The shift state while the mouse button is pressed.

X | Y

The current mouse coordinates.

HitTest

The hit test value obtained from the WM_NCHITTEST message.



See Also