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

Declaration
type  
  TMouseEvent = procedure(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer) of object;  
 
property OnMouseDown: TMouseEvent;  

Description
The OnMouseDown event occurs when the user presses a mouse button with the mouse pointer 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
OnMouseUp and OnMouseMove events.