[Lazarus] Docking Support
Bernd
prof7bit at googlemail.com
Mon Jul 11 15:09:22 CEST 2011
2011/7/11 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> What OS?
> Can you send me the layout file?
Linux, GTK2
I did some more testing and this is one of the things that happen:
Open the following 4 windows: Object inspector, Code explorer, Source
editor and messages.
Dock them in the following way on the left side put Object inspector
and Code explorer into a "tabbed area" (don't know the exact term for
this) and on the right side put source editor and messages into
another "tabbed area". So the end result is on the left you can tab
between two docked forms and on the right you can tab between two
docked forms.
Now save it and also make it the default.
The layout works perfectly well until you close the IDE and restart
it. as you can see from the attached file it did not save the
complete layout, it only contains source editor and obect inspector,
the other two are missing.
If I now restart the IDE then it will show me in the window menu that
"messages" is open but I cannot find it anywhere. Its hidden and
completely unaccessible (and also unclosable).
If I load the same layout file again from the tools menu then message
is gone from the windows menu and I can open it again.
It seems as soon as I try to dock something into a tab it will not
save it and the next loading of the IDE with this as the default
layout will lead to some strange behavior. I have also managed to
provoke exception dialogs popping up (not easily reproducible, i will
write the message down as soon as I see one again) while trying to
load a few different saved layouts when the IDE is already messed up.
Restart of the IDE and loading one of the known working layout seems
to help. Layouts without tabs seem to work but tabs would be extremely
helpful..
_________
Attachment: saved layout is missing "messages" and "code explorer"
which were docked inside tabs. First restart with this will lead to
messages hidden, after second load IDE will be usable again.
<?xml version="1.0"?>
<CONFIG>
<MainConfig>
<Nodes ChildCount="1">
<Item1 Name="MainIDE" Type="CustomSite" ChildCount="1"
WindowState="Maximized">
<Bounds Width="1024" Height="710">
<WorkArea>
<Rect Right="1024" Bottom="729"/>
</WorkArea>
</Bounds>
<Item1 Name="AnchorDockSite3" Type="Layout" ChildCount="3">
<Bounds Top="68" Width="1024" Height="619" SplitterPos="64"/>
<Anchors Align="Bottom"/>
<Item1 Name="AnchorDockSplitter2" Type="SplitterVertical">
<Bounds Left="310" Width="4" Height="619"/>
</Item1>
<Item2 Name="SourceNotebook" Type="Control">
<Bounds Left="314" Width="706" Height="592"/>
<Anchors Left="AnchorDockSplitter2" Align="Client"/>
</Item2>
<Item3 Name="ObjectInspectorDlg" Type="Control">
<Bounds Width="306" Height="592"/>
<Anchors Align="Client" Right="AnchorDockSplitter2"/>
</Item3>
</Item1>
</Item1>
</Nodes>
</MainConfig>
</CONFIG>
More information about the Lazarus
mailing list