FMX.Memo.Style.TStyledMemo.MouseDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, 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.Memo.Style.pas
FMX.Memo.Style.hpp
FMX.Memo.Style TStyledMemo

Description

Internally executed while a mouse button is pressed over the surface of the TMemo control.

The Button parameter specifies the mouse button that has been pressed. The Shift parameter specifies which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the specified key was pressed, having the control in focus. The X and Y parameters specify the position of the mouse cursor on the screen.

MouseDown moves the cursor to the closest location from where the mouse button was clicked.


See Also