Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.OnMouseDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnMouseDown: TMouseEvent read FOnMouseDown write FOnMouseDown;

C++

__property TMouseEvent OnMouseDown = {read=FOnMouseDown, write=FOnMouseDown};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Occurs when the user presses a mouse button with the mouse pointer over a control.

Use the OnMouseDown event handler to implement any special processing that should occur as a result of pressing a mouse button.

The OnMouseDown event handler can respond to left, right, or center mouse button presses and shift key plus mouse-button combinations. Shift keys are the SHIFT, CTRL, and ALT keys. X and Y are the pixel coordinates of the mouse pointer in the client area of the Sender.

OnMouseDown is an event handler of type Vcl.Controls.TMouseEvent.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance