RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.SetCaptureControl Function

Causes the specified control to receive all mouse messages.

Pascal
procedure SetCaptureControl(Control: TControl);
C++
SetCaptureControl(TControl * Control);

Call SetCaptureControl to allow a control to capture the mouse. When the control has the mouse captured, it receives all mouse messages until another control captures the mouse.

Note: Many controls capture the mouse in response to mouse events. Application code should avoid explicitly capturing the mouse.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!