appevents OnAppMouseMove event
Example
Return to Introduction  Previous page  Next page
Applies to
acAppEvents component.  

Declaration
type  
  TacAppMouseMoveEvent = procedure(Sender: TObject; ShiftState: TShiftState; ScreenPoint: TPoint; WindowHandle: hWnd; HitTestCode: Integer) of object;  
 
property OnAppMouseMove: TacAppMouseMoveEvent;  

Description
The OnAppMouseMove event occurs when the user moves a mouse pointer over ANY window and over ANY control within entire application. Use the OnAppMouseMove to handle all mouse movements within any control of your program.  
 
Use ScreenPoint parameter to locate current position of mouse pointer (this value in screen coordinates. Check out an example to see how to convert the screen coordinates to coordinates of local control). Window handle of control returned by WindowHandle parameter.  

Parameters
ShiftDetermines the current state of the control keys — Ctrl, Shift and Alt.  
ScreenPointThe X and Y position where user moves a mouse pointer in screen coordinates;  
WindowHandleThe window handle of control where user moves a mouse pointer.  
HitTestCodeThe code which identifies the hot sport of control if user moves a mouse pointer outside of control's or form's client area. Check out WM_NCHITTEST message in the Win32 API reference for more details.  

See also
OnAppMouseUp and OnAppMouseDown events.