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/A | Unknown | Unknown | Unknown | Unknown | Unknown | Unknown | Unknown | Unknown | Exists | Exists | Exists | Exists | Exists | N/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:
- Open the docking sample coming with Delphi ($Delphi\Demos\Docking).
- 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.
- Set the forms UseDockManager property to True and start the demo.
- 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.
- 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.
|
|