Vcl.Controls.TControl.MouseCapture
Delphi
property MouseCapture: Boolean read GetMouseCapture write SetMouseCapture;
C++
__property bool MouseCapture = {read=GetMouseCapture, write=SetMouseCapture, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TControl |
Description
Specifies whether the control has "captured" mouse events.
Use MouseCapture to determine whether a control has captured the mouse. When a control captures the mouse, all subsequent mouse events go to that control until the user releases the mouse button.
A control captures the mouse when the user drags an item from it. In addition, if the control has the csCaptureMouse flag set in its ControlStyle property, it captures the mouse when the user presses the left mouse button over it, until the user releases the mouse button.