Vcl.Grids.TInplaceEditList.MouseDown
Delphi
procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
C++
DYNAMIC void __fastcall MouseDown(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TInplaceEditList |
Description
Provides special processing when the user presses a mouse button.
If the user presses the left mouse button over the button that opens the pick list, MouseDown verifies if the list is already open, in which case it simply closes the pick list. Otherwise, MouseDown calls the DropDown method to open the pick list. Finally, MouseDown generates an OnMouseDown event.
The Button parameter determines which mouse button the user pressed. Shift indicates which shift keys (Shift, Ctrl, or Alt) were down when the user pressed the mouse button. X and Y are the pixel coordinates of the mouse pointer within the client area of the control.