trayicon OnMouseMove event
Return to Introduction  Previous page  Next page
Applies to
acTrayIcon component.  

Declaration
type  
  TMouseMoveEvent = procedure(Sender: TObject; Shift: TShiftState; X, Y: Integer) of object;  
 
property OnMouseMove: TMouseMoveEvent;  

Description
The OnMouseMove event occurs when the user moves the mouse pointer while the mouse pointer is over a tray icon. Use the OnMouseMove event handler to respond when the mouse pointer moves after the control has captured the mouse.  
 
Use the Shift parameter of the OnMouseDown event handler, to determine to the state of the shift keys and mouse buttons. Shift keys are the Shift, Ctrl, and Alt keys or shift key-mouse button combinations. X and Y are pixel coordinates of the new location of the mouse pointer in the client area of the Sender.  

See also
OnMouseDown and OnMouseUp events.