I have tested your code and there is nothing wrong with it!

If you look at your computer monitor closely, you'll see a slight reddish 
text color. If you want to see the red, just go all out rgb.r=255 and you'll 
get your red!

As for IndexedColorType, it's an index of 255 color. I normally us the app 
"Khroma" that display the these colors and their index number;

Azrul
www.mobile-coder.com
Pda/Smartphone code snippets bank.

"Todd Walk" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> I'm trying to change the color of the text output by
> WinPaintChars.
>
> Trying WinSetTextColorRGB, I use (to get red):
> WinPushDrawState();
> RGBColorType rgb;
> rgb.r=64;rgb.g=0;rgb.b=0;
> WinSetTextColorRGB(&rgb,NULL);
> WinPaintChars(str,StrLen(str),x,y);
> WinPopDrawState();
>
> Nothing happens, it's still black.
>
> After looking in the PalmOS Ref for about an hour, I still don'
> have a clue about WinSetTextColor's IndexedColorType argument.
>
> Todd.
> 



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

Reply via email to