Controls.TControl.MouseActivate
From RAD Studio VCL Reference
Contents |
Delphi Information
From Controls.pas
function MouseActivate(Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer; HitTest: Integer): TMouseActivate; dynamic;
Unit: Controls
Type: method
Visibility: protected
Member Of: TControl
C++ Information
From Controls.hpp
dynamic virtual Controls::TMouseActivate __fastcall MouseActivate(Controls::TMouseButton Button, System::Set<Classes::Classes__1,0,8> Shift, int X, int Y, int HitTest);
Unit: Controls
Type: method
Visibility: protected
Member Of: TControl
Description
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. |