You can do something like:
RGBColorType color;
color.r = 0x0;
color.g = 0xFF;
color.b = 0x0;
WinSetBackColor( WinRGBToIndex( &color ) );
//Ray
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mike
Walters
Sent: Tuesday, January 30, 2001 7:14 PM
To: Palm Developer Forum
Subject: Setting background color of text
I know this is probably an easy question, but I just can't seem to find the
answer anywhere. I've looked in the Palm site, and through the reference
and companion docs for 3.5.
I have an app where I use a bitmap to set the background color of the app to
green (white on non-color machines). As I put text over the bitmap, the
background color of the text is always white. I want the background color
of the text to be green (white on non-color machines).
I know there is a function called WinSetBackColor, but the argument to it is
an IndexedColorType. I can't figure out which value to use. I suspect I'm
going down the wrong path here. I know there are other functions that set
the color based on an RGB value, but I can't figure out how to find the RGB
value for my background bitmap.
Any help on this, or even a snipet of sample code would be GREATLY
appreciated.
Thanks,
Mike Walters
--
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/