[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TMouse

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Provides access to properties of the Mouse.

## Declaration

Source position: controls.pp line 2659

`type TMouse = class`
`public`
`property Capture: HWND; [rw]` |  | Handle for the control with mouse capture.
`property CursorPos: TPoint; [rw]` |  | The screen position for the mouse cursor.
`property IsDragging: Boolean; [r]` |  | True while dragging an object.
`property WheelScrollLines: Integer; [r]` |  | The number of lines to scroll with every notch or unit on the mouse wheel
`property DragImmediate: Boolean; [rw]` |  | Does dragging start immediately (True), or only after a mouse move?
`property DragThreshold: Integer; [rw]` |  | The minimum distance the mouse must move before dragging starts (in delayed mode)
`end;`

## Inheritance

`TMouse` |  | Provides access to properties of the Mouse.
`TObject`

## Description

Contains information about the current mouse position, whether messages are captured by a window, whether it is dragging an object, and how far the mouse must move before a control starts dragging. TMouse is the type used for the Mouse global unit variable.

## See also

Mouse |  | The global TMouse instance for the unit.