Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing grid class highlight color
Message
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:
01220181
Vues:
20
>>>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.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform