Anchordocking, `DockMaster.LoadLayoutFromConfig` has no effect anymore when stuff to dock are visible
Original Reporter info from Mantis: BBaz @basile.b
-
Reporter name:
Original Reporter info from Mantis: BBaz @basile.b
- Reporter name:
Description:
DockMaster.LoadLayoutFromConfig
doesn't work anymore in 2.0RC1. It's called in DoFirstShow
main form overridden method and has no effect anymore, unless the two commands (closeAll()
and visible()
) are added before the call:
```diff
@@ -1900,10 +1900,12 @@ begin
if fileExists(getDocPath + 'docking.xml') then
begin
xcfg := TXMLConfigStorage.Create(getDocPath + 'docking.xml', true);
try
try
+ DockMaster.CloseAll;
+ self.Visible:=true;
DockMaster.LoadLayoutFromConfig(xcfg, false);
except
exit;
end;
str := TMemoryStream.Create;
` ` `
it used to work without the two lines added.
When the call happens, the software has created all the dockable forms and they are all visible, which seems to be the issue (confirmed by what i need to add as workaround, i.e hide them)
Mantis conversion info:
- Mantis ID: 34454
- Version: 2.0RC1