Vcl.Forms.TCustomForm.OnMouseDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnMouseDown: TMouseEvent read FOnMouseDown write FOnMouseDown stored IsForm;

C++

__property OnMouseDown = {stored=IsForm};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

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

Vcl.Forms.TCustomForm.OnMouseDown inherits from Vcl.Controls.TControl.OnMouseDown. All content below this line refers to Vcl.Controls.TControl.OnMouseDown.

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