Jason,

Thanks a lot for these details.
I'll go and hack it into my project right away.

Thanks a lot
Ole



Jason Davidson <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

You need to definitely detect which device/OS is being used before making
this call.

I just use this

#define sysVersion35 sysMakeROMVersion(3,5,0,sysROMStageRelease,0)

UInt8 SystemGetColor()
{
UInt32 depth,romVersion;


FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);

if(romVersion >= sysVersion35)
{
WinScreenMode(winScreenModeGet, 0, 0, &depth, 0);
if(depth >= 8)
{
// 1 means that there is color
return 1;
}
else
{
// 2 means that there is no color but the version is greater than 3.5
return 2;
}
}
else
{
// 0 means < 3.5 and no color.
return 0;
}
}

if true than I can use my color stuff if false I don't touch it.


Jason D

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ole
Sent: Wednesday, July 26, 2000 3:32 AM
To: Palm Developer Forum
Subject: Re: color fonts

Nice one. I also was thinking of colorizing my fonts in my current project.

Additional question:
What might happen if that SW will run on a Palm III (non color) ???

Ole

Nesse, Rustin <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> IndexedColorType WinSetTextColor(IndexedColorType textColor);
>
> Page 813 of the Palm OS Reference (pdf format).
>
> -Rus
>
> >-----Original Message-----
> >From: Brandon Smith [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, July 25, 2000 12:20 PM
> >To: Palm Developer Forum
> >Subject: color fonts
> >
> >
> >I need to implement color fonts... I read the documentation on
> >WinDrawChars
> >which says the text is drawn in the current text color. So how
> >do I set the
> >text color?
> >
> >
> >--
> >For information on using the Palm Developer Forums, or to
> >unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
> >
>
>



--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/








-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to