Sign in Join
FPDoc Onlineexperiment

TControl.CalculateDockSizes procedure

Member of TControlprotectedIn unit Controls

Saves the docked and undocked extent of the control.

Declaration

pascal
procedure CalculateDockSizes

Description

In the floating state, it sets UndockWidth/Height to the current Width/Height. In docked state, it sets LRDockWidth/TBDockHeight to the current Width/Height.

Should save both in any case, independent from DockOrientation or host Align. Rationale: a DockManager will either ignore these values, or use them according to the new alignment. Without a DockManager both extents are required, because no (valid) alignment information applies.

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