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

TControl.ReplaceDockedControl

Remove a previously docked control and put a new control in its place

Declaration

Source position: controls.pp line 1212

public function TControl.ReplaceDockedControl(

  Control: TControl;

  NewDockSite: TWinControl;

  DropControl: TControl;

  ControlSide: TAlign

):Boolean;

Arguments

Control

  

The old control that was previously docked at this site

NewDockSite

  

The new site for docking; used if DropControl is nil

DropControl

  

The control site to be used for docking, unless it is nil when it is igored. Passed straight through as an argument to ManualDock

ControlSide

  

The side to which the new control is to be aligned; passed straight through as an argument to ManualDock

Function result

Returns True if a docked control has been successfully replaced with a new one

Description

Checks to see whether there is a previously docked control,
and removes it, then puts the new control in its place

See also

ManualDock

  

ManualDock - permits operator-defined docking