Vcl.Controls.SetCaptureControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetCaptureControl(Control: TControl);

C++

extern DELPHI_PACKAGE void __fastcall SetCaptureControl(TControl* Control);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

Causes the specified control to receive all mouse messages.

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.

See Also