Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing grid class highlight color
Message
De
26/04/2007 09:56:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01220104
Message ID:
01220120
Vues:
21
>>>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.

I prefer table solution, more consistent with data-centric approach :). Anyway, you application has tables, so few extra ones would not hurt.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform