256 color problem

I

Ian

My database is running on Terminal Server (using 256 colors).

I need to change the form colors to use solid colors only from the 256 color
palette.

I know how to change the colors, I need to know what colors numbers will
produce solid colors in 256 color mode.

thanks in Advance
 
W

Wayne Morgan

My recommendation would be to set your display for 256 colors, open the form
in design mode and go to the back color property, then click the ... button
to open the color picker window. You should then be able to see the colors
that look ok in 256 color mode. Once you pick one of those, the number for
that color will be entered in the property box and you can use it for the
rest of the forms.
 
I

Ian

Nice idea, but I'm using a flat screen and my laptoo video doesn't support 256.

I don't want to just fumble about trying to find a solid color. I need to
know what the valuies are. I need to use quite a few different colors, so it
would be useful to see all 256 colors in the Palette and then choose from
them. When creating colors using the Custom color builder I don't think
there are 256 solid colors in there.
 
W

Wayne Morgan

What ever you pick, you have a potential problem. It is the same one that
causes programs that require 256 colors to not work if the display is set
for more than 256 colors. In 256 color mode, Windows uses a color pallet
that can be changed. You will notice this if you open two pictures with
different pallets then click back and forth between them, changing which one
is the active window. The one in the active window will look ok, the other
won't. To work around this, I recommend that you actually stick with the
basic 16 colors.

Of course, the following 8 colors should work without a problem:
vbBlack 0x0
vbRed 0xFF
vbGreen 0xFF00
vbYellow 0xFFFF
vbBlue 0xFF0000
vbMagenta 0xFF00FF
vbCyan 0xFFFF00
vbWhite 0xFFFFFF

These are the VBA constants and their Hex equivelants (from the Help file).
Their RGB equivelants would be:
0,0,0
255,0,0
0,255,0
255,255,0
0,0,255
255,0,255
0,255,255
255,255,255

I believe the next 7 can be found by replacing 255 with 128. If you open the
color picker in the Advanced view, you can enter these numbers for Red,
Green, and Blue then see what number it gives you in the property box when
you click ok.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top