RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolButton.MouseMove Method

Responds when the user moves the mouse over the tool button.

Pascal
procedure MouseMove(Shift: TShiftState; X: Integer; Y: Integer); override;
C++
virtual __fastcall MouseMove(TShiftState Shift, int X, int Y);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!