Hello,
I've searched both forums and didnt find an issue similar to mine, so I decided to open a new one.
I got a main form as you can see in the attached image.
This is how far I got:
The user can switch around different dock settings. I am saving the previous dock settings and loading the clicked dock settings. There is a fixed count of these settings the user can choose from. He can manipulate each of them as he likes. After closing and restarting the application the correct dock settings are loaded from the xml settings file.
This is new: Now I am trying to put MDI in. Opening the Application will bring up the form without any tabs in the mdi area (OK). Opening a tab works fine. Now, after switching the dock settings (user click) I want to load his dock settings for that config, but the MDI area loses it's tabs. I still can see the control itself, but the tab disapears. So in general I am having problems saving and loading the dock settings for mdi controls. Is it even required to save the MDI controls with the xml? How to avoid that? If it is intended, why is the result after the load not lossless?
This is required: The user must have the possiblilty to undock the MDI control from the main form to the float area of the dock manager. I know how to do this.
Blue
EDIT:
the clicked dock settings can not know about the opened mdi controls... how could I have missed that... But how to manage that the opened MDI controls stay the way they are, indepentent from the rest of the dock settings?
after investigating further I came to the point I think I can define my problem a little more in detail.
I can load dock settings, I can store and restore MDI controls etc... BUT what I need to do is save several individual dock settings, which share the dock settings of the saved mdi control dock settings. I've created an image to illustrate my issue (see attachment)
I can manipulate the XML files while the app is running to achieve the desired behavior, the big problem lies in saving the XML. How can I merge individual and shared dock settings to load the dock settings for any settings (1, 2 or 3) in one LoadFromXML operation???
any help is appreciated.
Hello BlueScreenISU
BlueScreenISU said: How can I merge individual and shared dock settings to load the dock settings for any settings (1, 2 or 3) in one LoadFromXML operation???
How can I merge individual and shared dock settings to load the dock settings for any settings (1, 2 or 3) in one LoadFromXML operation???
At that moment we have not such functionality. Also it is very complicate task to be solved, because the structure of XML layout file in our UltraDockManager depend of many factors that could be change from the users. So you should investigate a lot of scenarios to know how to be made the appropriate merge between your XML files.
Please let me know if you have any further questions.
Regards
Hello Georgi,
I have made the step to try to merge the files and I am almost satisfied with the solution. There is still a bug that I need to erase, but I got hope :)
It needs a lot of testing and as you say probably many factors could break the merge.
i have made it possible now.
i am extracting, removing and injecting mdi pane xml settings and all what is required between the saved xml settings.