![]() Example |
![]() ![]() ![]() |
acAppEvents component.
|
type
|
TacAppMouseMoveEvent = procedure(Sender: TObject; ShiftState: TShiftState; ScreenPoint: TPoint; WindowHandle: hWnd; HitTestCode: Integer) of object;
|
|
property OnAppMouseMove: TacAppMouseMoveEvent;
|
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.
|
Shift | Determines the current state of the control keys Ctrl, Shift and Alt.
|
ScreenPoint | The X and Y position where user moves a mouse pointer in screen coordinates;
|
WindowHandle | The window handle of control where user moves a mouse pointer.
|
HitTestCode | The 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.
|
OnAppMouseUp and OnAppMouseDown events.
|