Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to store/load workspaces?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to store/load workspaces?

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: How to store/load workspaces?
    Posted: 26 June 2007 at 1:27pm
I'm new to this toolkit, please bear with me.

I searched the 'documentation' and this forum, but I did not find anything.

Is there somewhere an explanation/example which shows how to store the window position of the main frame window, the docking pane layout, the toolbars and other UI elements in a archive / file? I cannot store data in the registry

When I search the samples, I find many areas where apparently parts of the windows / docking bars are saved.

But there is no documentation what all these methods do, when to use them, how to use them, and in which sequence.

I understand that the programmer who has created these examples did know how to use all these methods, but neither the source code comments not the toolkit reference contain any additional information.

I see that this toolkit is very powerful, but the lack of documentation prevents us from using all this power.

I've found an example which seems to use CXTPPropExchange to store all this stuff in an archive. But the method it uses is about 50 lines long, calls dozens of toolkit methods, and all without a single comment.

Where in the documentation is all this explained, which classes work together, when to store what?

What I have in mind is to allow me users to store "workspaces", and to load them later from files.

Any help and tips appreciated.





Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 26 June 2007 at 3:05pm
I made some progress using CXTPPropExchangeArchive.

But I still need some hints about what to store, and in which sequence.

I also noticed that storing docking panes also includes the Title of the docking pane. When I change the title later, I need to delete the stored layout to make the new title appear. Is this how this is intended to work?

Also, when I add / remove docking frames, restoring the layouts often crashed badly. It seems that the load/store code is very sensitive and required deleting whenever a new docking panel is added / removed.

I think about later, when the application is shipped, and updates with new docking panels are released. How can I converted the stored layouts on the client PCs so they don't need to recreate everything from start?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.032 seconds.