Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1940
Switching Dock Settings with MDI Controls
posted

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?

Parents
  • 1940
    posted

    Hello,

    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.

    Blue

Reply Children