Sign in Join
FPDoc Onlineexperiment

TWinControl.DoUnDock function

Member of TWinControlprotectedIn unit Controls

Notifies an OnUnDock handler and the DockManager of an undocked client control.

Declaration

pascal
function DoUnDock(NewTarget: TWinControl; Client: TControl; 
 KeepDockSiteSize: Boolean=True): Boolean; virtual

Arguments

NewTarget

The new docksite, Nil for floating.

Client

The control being undocked.

KeepDockSiteSize

Function result

Set to False to deny undocking.

Description

The OnUnDock handler can deny the undocking request for the control. This can cause problems; instead, the control better should not be draggable.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.