[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.OnMouseMove

Event handler signalled when the mouse pointer is moved in the control.

Declaration

Source position: controls.pp line 1598

protected property TControl.OnMouseMove : TMouseMoveEvent
  read FOnMouseMove
  write FOnMouseMove;

Description

OnMouseMove is a TMouseMoveEvent property with the event handler signalled when the LM_MOUSEMOVE message is handled for the control. It is signalled (when assigned) from the MouseMove method, and occurs after the mouse position has been updated and the DragManager has been notified of the new pointer position.

An application can implement and assign an object procedure to the event handler to perform actions needed when the mouse position is changed within the control. The control for the notification event is passed as the Sender argument.

Use OnMouseDown and OnMouseUp to respond to mouse button events in the control.

Use OnMouseEnter and OnMouseLeave to respond to mouse movements where the pointer enters or exits the control.

Use OnMouseWheel to perform actions needed when a mouse wheel event occurs in the control.

See also

TControl.MouseMove

  

Handler for MouseMove events.

TControl.WMMouseMove

  

Message handler for mouse move events.

TControl.OnMouseDown

  

Event handler signalled when a mouse down event is handled for the control.

TControl.OnMouseEnter

  

Event handler signalled when the mouse pointer has entered the control.

TControl.OnMouseLeave

  

Event handler signalled when the mouse pointer has left the control.

TControl.OnMouseUp

  

Event handler signalled when a mouse up event is handled for the control.

TControl.OnMouseWheel

  

Event handler for mouse wheel turned.

TMouseMoveEvent

  

Specifies an event handler used to respond to mouse movement events.

TDragManager.MouseMove

  

Generates visual feedback for mouse movement in a drag operation.

DragManager

  

The current DragManager (always TDragManagerDefault).


Version 3.2 Generated 2024-02-25 Home