"Greg Lutz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> >"Matt Hebley" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] > > > > > > If you grub around in the OS source code long enough, you can find code to > > > invert coloured text, maybe the table code. It makes several calls to > > > WinPaintRectangle, IIRC. It might work on graphics. > > > I think the function Matt is referring to is ReplaceTwoColors() in Table.c > (I hope my saying this doesn't violate the agreement we sign to get the OS > source!). > Thanks Greg, but I don't think that's the solution to my situation. ReplaceTwoColors() is identical to the PrvListReplaceTwoColors() in AddrList.c of the Address sample in the 4.0 SDK samples, and I already tried that. It works well for highlighting text fields, but doesn't work quite so well highlighting graphics. I referred to this in my original posting: I next tried using WinSetBackColor/WinSetForeColor with UIObjectSelectedForeground and UIObjectSelectedFill to give the icon the right selection background color, but the picture part of the image still didn't look very good (all the white was replaced by the background color and the black text part of the image didn't invert to white). I'm beginning to think the OS paints a rect with the selected background color, then slaps the image on top and lets the background color show through the transparent portion of the image. Thanks again, jcc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
