Vcl.ColorGrd.TColorGrid.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.ColorGrd.pas Vcl.ColorGrd.hpp |
Vcl.ColorGrd | TColorGrid |
Description
Responds when the user presses the mouse down.
If the user presses the left mouse button down when the cursor is over a color, then that color is set as the foreground. If the user presses the right mouse button down when the cursor is over a color, then that color is set as the background.
The ForegroundIndex and BackgroundIndex properties are set accordingly.