![]() |
How to store/load workspaces? |
Post Reply
|
| Author | |
MacW
Senior Member
Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
MacW
Senior Member
Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
Quote Reply
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? |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |