StrataFrame Forum

Appolication Theme NEW property request

http://forum.strataframe.net/Topic8933.aspx

By Ben Hayat - 5/21/2007

Would it be possible to add a new property to Application Theme class (Registry Key), that would allow for the Application Theme to save/retrieve the previously used theme within SF?



This way, if the Application Theme is "No Them", it can then use the Default Application Theme (if any), but if there is a theme already saved, it should use that.

Same thing for saving it, if what the user has selected (meaning if the user has changed the Application.Theme) then SF should save that new Theme into Registry.



Thank you [Sir] Smile


By Ben Hayat - 5/22/2007

As I was looking at BrowseDialg in more detail today, I noticed there is a button that says "Search fields" on the menu strip. If you click, it shows the list of fields to show or not to show. But there is a button on the menu that says "Save". Apparently, this saves it to registry, since it stays persistent, I'm talking about the same behavior to store the selected Theme.



Thank you again!
By Trent L. Taylor - 5/22/2007

Application Theme to save/retrieve the previously used theme within SF?

I really don't see the need for this and this to me is different than the Search FIelds in the BrowseDialog.  Really a users themed preferences should not be saved on a per machine basis but rather by a per logged in user basis.  If a user goes from machine to machine then the theme should follow that user.  If a different user logs into your application on the same machine, then that users preferred theme should be loaded.  We have a preferences file in our medical software and allow the user to choose their theme.  After the user logs in we then load that theme from the preferences table.  This is something that can be done very easily on your part and really may change from environment to environment based on a developers needs.

The BrowseDialogs search fields collection is a more complicated element and is internal to the BrowseDialog and there is no easy way for you, the developer, to handle this yourself other than through the use of a registry key.  There is also quite a bit more data that is saved through the SearchFields collection rather than a single shared property on the ApplicationTheme level.

Hope this makes sense. Smile

By Ben Hayat - 5/22/2007

Trent; your point is well taken and you're absolutely correct that it should based on logged in user that WS. I'll approach it your way!



Good point. Thanks!
By Trent L. Taylor - 5/22/2007

I am glad this solution will work for you Smile