RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomControlBar.MouseDown Method

Handles mouse button clicks.

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

MouseDown is called automatically when the user clicks the control bar with the mouse. After generating an OnMouseDown event, MouseDown determines whether a band is being dragged and if so, computes its position. 

Button indicates which button was clicked. 

Shift indicates the state of the Alt, Ctrl, and Shift keys and the state of the mouse buttons. 

X and Y are the position where the mouse was clicked. 

 

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