RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.TMouseActivateEvent Type

TMouseActivateEvent is the function type for an OnMouseActivate event.

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

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!