Sign in Join
FPDoc Onlineexperiment

TMouse class

In unit Controls

Provides access to properties of the Mouse.

Declaration

pascal
TMouse = class

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

Properties

CapturepublicHandle for the control with mouse capture.
CursorPospublicThe screen position for the mouse cursor.
IsDraggingpublicTrue while dragging an object.
WheelScrollLinespublicThe number of lines to scroll with every notch or unit on the mouse wheel
DragImmediatepublicDoes dragging start immediately ( True), or only after a mouse move?
DragThresholdpublicThe minimum distance the mouse must move before dragging starts (in delayed mode)

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.