Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - SaveState and themes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SaveState and themes

 Post Reply Post Reply
Author
Message
castleJoe View Drop Down
Newbie
Newbie


Joined: 16 August 2004
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote castleJoe Quote  Post ReplyReply Direct Link To This Post Topic: SaveState and themes
    Posted: 14 October 2004 at 12:48pm

Hi, I was going to save the panes settings with this method, but it doesn't save any color/theme settings. Is this by design? If yes, it would be very practical to be able to save the theme/color/tab manager etc. settings too so I could offer the user the possibility to customize the whole GUI.

Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2004 at 8:51pm

While the 'SaveState' method doesn't do this, you can still offer the ability for the user to customize it.  I have a PropertyGrid control in a General Options dialog that offers a drop-down list of themes for CommandBars, DockingPanes, and PropertyGrid.  I have to save and restore these settings myself, but it still gives the user the option of customizing.

Just thought I'd throw that out there...

Back to Top
castleJoe View Drop Down
Newbie
Newbie


Joined: 16 August 2004
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote castleJoe Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2004 at 3:54am

Thanks Boyd. I was looking for SaveState on the TabPaintManager, but as you say - have to do it manually... You don't have your serializer reusable and would share it ;) ? 

 (I was thinking using the frmProperties++ from the TabManager sample to allow changing appearance)

Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2004 at 7:50am

If I had something easy to share, I would.  I didn't serialize anything.  I just stored each of the individual settings in the registry and then restored the settings when my application was loaded.

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.145 seconds.