RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolButton.MouseUp Method

Responds when the user releases the mouse.

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

Do not call MouseUp. It is called automatically when the user releases the mouse. As implemented in TToolButton, MouseUp first generates an OnMouseUp event. Then, if the left mouse button while over the tool button and the button's style is tbsDropDown, MouseUp sets the Down property to false. Finally, MouseUp generates an OnClick event. 

The Button parameter determines which mouse button the user released. Shift indicates which shift keys (Shift, Ctrl, or Alt) were down when the user released the mouse button. X and Y are the pixel coordinates of the mouse pointer within the client area of the control. 

MouseUp 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!