Vcl.ComCtrls.TToolButton.MouseMove
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.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolButton |
Description
Responds when the user moves the mouse over the tool button.
Do not call MouseMove. It is called automatically when the user moves the mouse over the tool button or when the tool button has captured the mouse. As implemented in TToolButton, MouseMove ensures that the Down property is false if the button's style is tbsDropDown and the user moved the mouse off the tool button. Then it generates an OnMouseMove event.
The Shift parameter indicates which keys (Shift, Ctrl, and Alt) were down when the mouse moved.
X and Y indicate the new position of the mouse pointer.
MouseDown helps ensure that the tool button's behavior remains unchanged, regardless of the version of ComCtl32.dll that is installed on the users system.