Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing grid class highlight color
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01220104
Message ID:
01220193
Views:
27
>>>>>With my grid class I want the user to be able to select the highlight color. I plan on implementing a right click menu to launch the color picker. To store this color I thought about using the registry so I could easily store colors for each grid if so desired and also so I don't have to depend on a table.
>>>>>Is this a solid design idea?
>>>>
>>>>In multi-user enviroment it makes sense to keep it for each user separately, i.e. you have a table 'usersettings', or one setting for everyone in table 'systemsettings', and you provide interface to fill these entries.
>>>
>>>I planned on using hkey_current_user. This would allow me to retrofit a load of apps without creating tables for them all.
>>
>>The added benefit of using a table is that the users' settings stay with them regardless of what PC they are using.
>
>That's a good point. I guess my main worry is how I will coordinate the grid class with the usersettings table across multiple apps. I'm not using a framework and there needs to be a standard way to create and maintain this new table.

Create the table with an 'application' field and place it in a common location as a free table.
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform