> > Well, I have been trying to stay quiet on here so not to sound stupid,
but
> > I'm afraid I am not stuck again. I have some art/bitmap on the screen
and I
> > want to show a score over it without a ugly box. I tried WinsetBackColor
to
> > 0 with hope that it would be transparent. It's not. Does anyone know if
> > it's possible to do this?
>
>   the standard "text" drawing is to use the "copy" function.
>
>   this clobbers the background, and you get this nice white bar around
>   the text.. what you want to do, is the following:
>
>     WinEraseChars()
>     WinInvertChars()
>
>   first call sets the pixels where the characters are off.. and the
>   "invert" turns em all back on again :)

I had a problem recently in the callback function for a list. the items
displayed correctly, but the background was wrong. this became apparent when
they were selected (and thereby inverted). I fixed it by starting with a
call to WinEraseRectangle.

I guess that inversion toggles the foreground but not the background, and
that by erasing we force all pixels to the foreground.



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

Reply via email to