Check out the following functions.

WinPushDrawState();

WinSetTextColor(blackDefault);
WinSetBackColor(numberBackGroundColor);
WinPaintChars("123", 3, xcoord, ycoord);

WinPopDrawState();

WinPushDrawState saves the current draw state.  WinPopDrawState returns you to the 
saved draw state.
Your table custom draw procedure should be able to use the above to draw in any color 
you choose.

Also look up UIColorSetTableEntry().  It allows you to change the default system 
colors.

Keith Wolcott

"Gordon, Douglas" wrote:

> Color could be useful to my app if I use it as a way of indicating extra
> information about a field or table entry. For example, normal list items
> might be blue, but items that have extra data available would be shown in
> green. I've looked at the available reference documents, but it's not
> entirely clear to me how my app would control the color of text displayed in
> a field by the default system code, or written specifically by my table
> "custom draw" procedure. Is there any sample code that shows the use of the
> new color API, color indexes, system color table, etc.? I just need a few
> examples that sort of bring it all together.
>
>   Doug Gordon
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palm.com/devzone/mailinglists.html


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to