Sign in Join
FPDoc Onlineexperiment

Mouse variable

In unit Controls

The global TMouse instance for the unit.

Declaration

pascal
Mouse: TMouse

Description

Mouse is a TMouse variable with the singleton used to access mouse information in the application. This includes the handle for the capture control, the current pointer position, as well as drag and scroll settings used in an application.

The class instance is created in the initialization section for the unit, and freed in the finalization section.

See also

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