Vcl.Buttons.TSpeedButton.MouseMove

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MouseMove(Shift: TShiftState; X, Y: Integer); override;

C++

DYNAMIC void __fastcall MouseMove(System::Classes::TShiftState Shift, int X, int Y);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Buttons.pas
Vcl.Buttons.hpp
Vcl.Buttons TSpeedButton

Description

Responds to mouse moving over control area.

Vcl.Buttons.TSpeedButton.MouseMove inherits from Vcl.Controls.TControl.MouseMove. All content below this line refers to Vcl.Controls.TControl.MouseMove.

Responds to mouse moving over control area.

Override the protected MouseMove method to provide other responses in addition to calling the OnMouseMove event handler when the user moves the mouse.

A control calls MouseMove in response to any of the Windows mouse-move messages (WM_MOUSEMOVE), decoding the message parameters into the shift-key state and position, which it passes in the Shift, X, and Y parameters, respectively.

As the mouse cursor moves across a control, this method is called repeatedly. Each time it is called, it is with the new coordinates that reflect the continuous path of the mouse cursor across the screen real estate covered by the control's visual representation.

See Also