On Fri, 14 Jun 2002, John Kelsey wrote:
> Code Snippet to help...
>
> FtrGet(sysFtrCreator, sysFtrNumROMVersion, &OSVersion);
> if (OSVersion >= 0x03500000)
> {
> WinScreenMode(winScreenModeGet, NULL, NULL, NULL, &bColor);
> }
> else
> ScrDisplayMode(scrDisplayModeGet, NULL, NULL, NULL, &bColor);
>
WinScreenMode == ScrDisplay mode
:) we all know that color was introduced in 3.5 - so, checking
for palmos 3.5 + using WinScreenMode would be sufficient. also,
if you run this snippet on a palmos 2.0 unit, it'll crash.
ScrDisplayMode was introduced in palmos 3.0
> FtrGet(sysFtrCreator, sysFtrNumROMVersion, &OSVersion);
> if (OSVersion >= 0x03500000)
> WinScreenMode(winScreenModeGet, NULL, NULL, NULL, &bColor);
> else
> bColor = false;
would work exactly how the original poster requested.
// az
[EMAIL PROTECTED]
http://www.ardiri.com/
http://www.mobilewizardry.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/