Saving/Loading individual Toolwindow layouts

DockableWindow/TabStripPanel for Windows Forms Forum

The latest build of this product (v2.0.0208) was released 19 years ago, which was before this thread was created.
Posted 19 years ago by Ty Oh - AgileSoftware
Avatar
Hi, let me first thank the administrator (Software Support Specialist, Cleveland, OH, USA) for your excellent support. I've been reading through the posts, and I'm clearly impressed by his/her efforts and expertise.


In our app, all toolwindows are created through code.
ToolWindow tw = new ToolWindow(dockManager1, key, text, image, userControl );
tw.Activate ();
The number of toolwindows to be created on startup is not fixed.

We love the Save/Load layout feature, but when the number of toolwindows to be displayed are different each time this becomes a problem.
- If the toolwindow exists in the layout file but is not created through code, an empty container is created.
- If the toolwindow does not exist in the layout but is created through code, the toolwindow isn't displayed at all (that is if loadlayout if called after creating the toolwindow).

We may be asking too much, but I'm thinking if we are able to save/load layouts per indiviual toolwindow we should be able get around this. Currently I am trying to modify the layout xml file before loading it (Not easy though *_*).

Thanks for reading.

Cheers.
Ty

Comments (3)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Ty,

Thanks for the praise. Quick question, is this post intended for our UIStudio product (different forum)? If so, we really should close this forum since it is for a product we don't sell any more that was a precursor to UIStudio.

I think you are talking about UIStudio based on what you said. The thing is that we store a ton of information for each tool window as you can see by the layout data. And when a layout is loaded, tool windows have to be loaded in an appropriate order (the order in the layout file) or else the layout won't appear the same as when it was saved.

Unfortunately, what you are doing (modifying the XML layout) might be the best solution for this sort of thing.


Actipro Software Support

Posted 19 years ago by Ty Oh - AgileSoftware
Avatar
Wow, awesome support in deed, appreciate your super fast response.

Yes, this should have been posted to the UIStudio thread.

Appreciate your expertise once again. I'll dive into modifying the xml layout file or try creating a dockmanager per toolwindow I guess.

Cheers.
Have a nice day. ^_^
Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Ok, if you have any questions regarding the XML data, feel free to post.


Actipro Software Support