Sign in Join
FPDoc Onlineexperiment

TDockTree.SetReplacingControl procedure

Member of TDockTreepublicIn unit Controls

Specifies the control to be replaced subsequently.

Declaration

pascal
procedure SetReplacingControl(AControl: TControl); override

Description

This method is called by ReplaceDockedControl, to announce a pending replacement of Control by another control. The next RemoveControl should be ignored, and InsertControl should only exchange the controls, without reorganizing the layout of the docksite. When Control is Nil, this call signals the end of the exchange [obsolete].

The name "SetReplacingControl" is a misnomer, it should read "SetControlToBeReplaced".

The intended purpose of this method is the replacement of a docked control by a Notebook, preserving the DockZone. This operation should be handled by an DockManager internally, and calls to this method should be ignored.

This description is the one of Controls.TDockManager.SetReplacingControl.

See also

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