Posted 21 years ago
by Dustin Campbell

In my application, I load a layout in the main form's Load event and save it in the Closing event. This works well but I've noticed some strange behavior.
There are several tool windows in the application that can be displayed or hidden via menu items. If I close one of the docked tool windows, close the app and re-open it, the tool window remains hidden (as expected). However, if I click the menu item to display the hidden tool window again, it isn't in the dock that it was in before. This behavior is reproducable using the demo app.
At first, I thought that this might be by design. But, after examing the layout file I see that the necessary information to re-create the tool window in its proper dock is stored in the file. Is there some way that I can utilize this information?
There are several tool windows in the application that can be displayed or hidden via menu items. If I close one of the docked tool windows, close the app and re-open it, the tool window remains hidden (as expected). However, if I click the menu item to display the hidden tool window again, it isn't in the dock that it was in before. This behavior is reproducable using the demo app.
At first, I thought that this might be by design. But, after examing the layout file I see that the necessary information to re-create the tool window in its proper dock is stored in the file. Is there some way that I can utilize this information?