Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.OnMouseMove

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnMouseMove: TMouseMoveEvent read FOnMouseMove write FOnMouseMove;

C++

__property TMouseMoveEvent OnMouseMove = {read=FOnMouseMove, write=FOnMouseMove};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Occurs when the user moves the mouse pointer while the mouse pointer is over a control.

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 OnMouseMove event handler to determine 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.

OnMouseMove is an event handler of type Vcl.Controls.TMouseMoveEvent.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance