Hello to all,
Maybe someone can help me with certain issue that I am having. In one app that I am developing, we want to use two DockManager components. Just think that our app allow to create "projects", so, the main form of our app, can contain docked "projects", and, every project, have their own DockManager, DockSite, DockPanels, etc.
Everything is working like a charm, except when we try to save and read a changed panels layout. Please, let me to explain:
1º In the app's main form, we float a dock tool panel, and, then close the app: before the app is finally close we use the DockManager's SaveToFile method in order to save the layout into a XML file. When the app starts again, look for a possible previosly saved layout, and, load it if exists.
2º We create a new "project" in our app, so the project's dockmanager, docksite and dockpanels enter in the stage. Now we float a tool panel of the project, and close the project: before close it, we do the same than before: use the project's DockManager's SaveToFile method to save the layout into a XML file, to be loaded when a project is created again, in a similar way than the main app.
In the first case the things works like a charm, that is, when the app starts, we use the DockManager's LoadFromFile method to load a previously saved layout, and, everything works as expected: even the floated tool panel appear like expected, so there is no problem here.
However, when a new project is created, and we load their previusly saved layout, the position and sizes of the non floated panels are recover without problem, but, non the float tool panel... this panel are not shown at all, even more, we can't show it using their Show method.
We can see that the app's main layout XML file have a "sitelist" node, and, inside that note, we can see a "site floating="1"", in which the float panel's properties are saved. We can't see the same in the project's layout XML file. The floating panel are just not saved there, so of course cannot be loaded later...
Taking a look at the main DockManager, DockSite and DockPanels, in comparisson with the project's DockManager, DockSite and DockPanels, we can't see any different in their properties. In fact, everything works fine also for the saved layouts of the projects: except for the floating panels.
Anybody can provide to us some idea about what can happen?
Please, if more information is needed, don't hesitate to reply to this post and ask for it: I will try to provide the required information as quickly as possible.
Thanks in advance for any possible help!