Vcl.Controls.TMouseActivateEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TMouseActivateEvent = procedure(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer; HitTest: Integer; var MouseActivate: TMouseActivate) of object;

C++

typedef void __fastcall (__closure *TMouseActivateEvent)(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y, int HitTest, System::Uitypes::TMouseActivate &MouseActivate);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

TMouseActivateEvent is the function type for an OnMouseActivate event.

TMouseActivateEvent has the following parameters:



Parameter Meaning

Sender

The control that generated the event.

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.

MouseActivate

Specifies the behaviour of the top-level form and whether the mouse messages are processed.



See Also