FMX.DateTimeCtrls.TCustomDateTimeEdit.MouseDown

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X: Single; Y: Single); override;

C++

virtual void __fastcall MouseDown(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, float X, float Y);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.DateTimeCtrls.pas
FMX.DateTimeCtrls.hpp
FMX.DateTimeCtrls TCustomDateTimeEdit

Description

OnMouseDown event dispatcher.

FMX.DateTimeCtrls.TCustomDateTimeEdit.MouseDown inherits from FMX.Controls.TControl.MouseDown. All content below this line refers to FMX.Controls.TControl.MouseDown.

OnMouseDown event dispatcher.

A control calls MouseDown in response to any of mouse-down messages, decoding the message parameters into the shift-key state and position, which it passes in the Shift, X, and Y parameters, respectively:

  • Button determines which mouse button is pressed: left, right, or middle.
  • Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--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. If <Button> is mbLeft, MouseDown sets PressedPosition as a TPointF(<X>,<Y>).

Override the protected MouseDown method to provide other responses when a mouse button is down while the cursor is over the control.


See Also