Sign in Join
FPDoc Onlineexperiment

GetCaptureControl function

In unit Controls

Returns the TControl instance with mouse capture enabled.

Declaration

pascal
function GetCaptureControl: TControl

Function result

The control with the mouse capture, or Nil when a capture control is not set for the widgetset class.

Description

Please note: For the interface, only a Handle for TWinControl can capture the mouse. The LCL extends this to allow TControl to capture the mouse.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.