[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.DoUnDock

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

Declaration

Source position: controls.pp line 2086

protected function TWinControl.DoUnDock(

  NewTarget: TWinControl;

  Client: TControl;

  KeepDockSiteSize: Boolean = True

):Boolean; virtual;

Arguments

NewTarget

  

The new docksite, Nil for floating.

Client

  

The control being undocked.

Function result

Set to False to deny undocking.

Description

The OnUnDock handler can deny to undock the control. This can cause trouble, the control better should not be draggable instead.

See also

TWinControl.DoUndockClientMsg

  

Notifies the DockManager of the undock of a client control.

TWinControl.OnUnDock

  

Event handler for control being undocked from this DockSite.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.