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);

Controls

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. 

SetCaptureControl is equivalent to SetMouseGrabControl.

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

 

GetCaptureControl 

TControl 

TControl 

TControl 

SetMouseGrabControl

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!