The Delphi Bug List

Entry No.
611
VCL - General - Controls - TWinControl
Delphi changes arbitrarily the size of child controls of a TWinControl when its DockSite property is set to True and its UseDockManager property is also True
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
N/AUnknownUnknownUnknownUnknownUnknownUnknownUnknownUnknownExistsExistsExistsExistsExistsN/A
Description
Reported by Mike Lischke; checked by Reinier Sterkenburg
The problem arises from the fact that on creation of the dock manager for the TWinControl all its child controls are inserted into the dock tree. See also in TDockTree.InsertControl the lines 8595 ff.

Steps to reproduce:

  1. Open the docking sample coming with Delphi ($Delphi\Demos\Docking).
  2. Select the memo on the TDockForm and change its alignment to alNone (or anything else than alClient). Adjust its size so that borders are around the memo control.
  3. Set the forms UseDockManager property to True and start the demo.
  4. Now make two of the dock forms visible and dock one to the other but make sure they don't dock via the page control.
  5. Now undock the forms and watch what happens with the memo controls.
Solution / workaround
Don't use property UseDockManager. I don't know anyway what it is for.
Latest update of this entry: 2002-04-07

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.