Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFoxPro 7.0 color problems

Status
Not open for further replies.

ChibiNeko

Programmer
Joined
Sep 26, 2002
Messages
13
Location
US
How do I configure Visual FoxPro 7.0's "color model/color source/ or color dithering scheme" so icons and buttons with graphics still look good when viewed in Windows 256 color video mode?
1.) I'm certain that my graphics are fine. Windows has a color model/dithering scheme that it applies to reduce the number of colors shown (when viewed in 256 color mode). Essentially, Visual FoxPro 7.0 or the active form/class needs to have the color model set up so that Windows reduces colors correctly; I just do not know how.
1.) 256 color (8 bit) modes do not look right. High Color (15/16 bit) and True color (24/32 bit) modes appear fine.
2.) My application's "splash" screen (displays when opened) has a JPEG (.JPG) image that when viewed through Windows 256 color mode, the default Windows color model strips nearly all color out of the graphic and makes it nearly illegible (two or three colors are kept in the graphic at maximum).
3.) Right now (256 color mode only) only the active button (with the mouse over it) shows colors correctly all other icons do not display color right; other icons have jumbled colors again making the other buttons illegible.

There's got’ta be a simple solution for this, I've looked through the Visual Fox Pro Documentation and hit a dead-end. Perhaps someone can pass along some ideas/thoughts or suggestions.

Thanks in advance,
 
The best thing will be to set color first by using 256 colors and then adapt suitable colors. This will make sure the applications look fine always. The same as one would go with Web designing, since you cannot be sure always what setup a user will have.

In my applications I provide, facility for users to adapt color selection from the color pallet and then save that as the individual users preference in a mem file. When the application is loaded, I read these colors for different screens and follow that.

:-)

ramani :-)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Windows XP themes seem to ruin the idea of "web safe 256 color pallete schemes." I cannot readily assume that XYZ numer of colors are used by the Title bar, the cursor, etc.. as I could with older versions of Windows. I can try it but there should be a better way to do this.

Why would my splash screen show only 4 or 5 colors when run in Windows 256 color mode? It looks really bad, it seems that the colors could be better substituted.

Any other Takers?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top