Sign in Join
FPDoc Onlineexperiment

TUnDockEvent procedure type

In unit Controls

The type used for OnUnDock event handler.

Declaration

pascal
TUnDockEvent = procedure(Sender: TObject; Client: TControl; 
 NewTarget: TWinControl; var Allow: Boolean)
 of object

Arguments

Sender

The docksite from which the object is undocked.

Client

The control to be undocked.

NewTarget

The new docksite for Client, Nil when undocked into floating state.

Allow

Set Allow to False to reject undocking.

Description

An UnDock event is sent by a dock site, and occurs before a control is undocked. The handler can reject undocking, by setting Allow to False.

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