Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
XML RSS Feed
High Color Systems
Most computers these days can display millions of colors. To save memory, however, many are set up to display only 256 at one time. Computers use palettes to keep track of the 256 colors available.

The message "This monitor does not support palettes" probably means one of two things. First, you may have an older computer that can display fewer than 256 colors at one time. In that case many of the more advanced programs that use colors and smooth gray shades will not work on your computer.

Second, and more likely, you have your system set to display "high color." In that case your computer can display a different color for every pixel on the screen at once so it does not need to use palettes. Converting the programs for high color is not hard.

First comment out all of the code that deals with palettes. That includes the test with GetDeviceCaps. It also includes calls to GetPalette, GetSystemPalette, SetPalette, and ResizePalette. In most programs these occur in the same subroutine and you can simply comment out the call to the routine. You should also remove the &H2000000 added to color values.


 
Subscribe to the VB Helper newsletter
Copyright © 1997-2001 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
www.vb-helper.com/highclr.htm Updated