Print Page | Close Window

SaveState and themes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=1280
Printed Date: 28 September 2024 at 6:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SaveState and themes
Posted By: castleJoe
Subject: SaveState and themes
Date 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.




Replies:
Posted By: Boyd
Date 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...



Posted By: castleJoe
Date 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)



Posted By: Boyd
Date 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.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net