Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to always have the same color?
Message
De
23/11/1999 22:43:25
 
 
À
23/11/1999 21:02:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00294757
Message ID:
00294802
Vues:
34
>>>>How can I design an application so that the colours that I used will look the same on my client's machine as they are doing on mine?
>>>>
>>>>For example on my machine green is really green. On my client's machine green is leaning toward black.
>>>>
>>>
>>>THis is a result of the client machine attempting (unsuccessfully) to emulate a color that it can't produce.
>>>
>>>When I have to choose colors for a downward compatible system, I set my system's colors to their number (256 or so), so I am seeing what they will see.
>>
>>I'm lazier - I use the client-defined Windows palette, and make them live with their own color schemes! < g >
>
>I do too, but some things you ahve to have color for: the highlight bar for a selected grid item- the background color for controls in a certain condition, etc.

You can extract RGB values from the Win32 API - you may want to look at GetNearestColor() and GetSystemPaletteEntries() as tools to extract values from the user's system color scheme.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform