----- Original Message -----
Subject: How to determine color or no color palm?
> How do I tell if I'm on a color Palm? I know I can check if I'm on a 3.5
> system, but can I check if that system is color or not?
This was just asked and answered yesterday... (the archives can be your
friend!)
>
> If you're on 3.5 or above, use WinScreenMode to determine the bit-depth of
> the screen:
>
> WinScreenMode(winScreenModeGet, 0, 0, &Depth, 0);
> if (Depth >= 8)
> Color!
>
and
>
> Boolean colorAvailable;
> error = WinScreenMode( winScreenModeGet, NULL, NULL, NULL,
&colorAvailable );
> if( !error && colorAvailable)
> {
> // Color!
> }
>
> This actually tells you if color is available. If you just look at
> the screeen depth, how do you know it isn't, for instance, 8-bit
> grayscale? Or 4 bit color?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/