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

TControl.MouseCapture

Are mouse messages captured by this control?

Declaration

Source position: controls.pp line 1218

protected property TControl.MouseCapture: Boolean
  read GetMouseCapture
  write SetMouseCapture;

Description

Mouse messages can be sent to a capturing control. This occurs automatically when a control is dragged. In normal operation all mouse messages are sent to the control under the mouse pointer.

Applications should capture mouse events only for special purposes, and release the capture as soon as a the target position has been determined. Limited user feedback is possible while the mouse is captured, but not all application controls will work properly so long.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.