That was really helpful. Thanks a lot James. Regards Venkatesh.
--- In [EMAIL PROTECTED], James <[EMAIL PROTECTED]> wrote: > venkatesh mohanraj wrote: > > Iam trying to print a string on the screen. The > > problem is that I have drawn a couple of filled > > rectangles with different colors and print this string > > on top of it. When I try to paint this string with > > some color, then the string gets printed on the screen > > but the background gets wiped out. I want to retain my > > background, which could be a bitmap or anything and > > print this string over it. > > > > Could someone please help me on this. Sample code > > would be of great help. > > > > I belive that I should look into winSetDrawMode() but > > Iam not able to figure it out. > > WinPaintChars with the winPaint mode always uses the foreground color and > background color established by WinSetTextColor and WinSetBackColor (or their > RGB equivalents). > > If you do not want to draw a background to your text: > > A) if the text color is black, set the background color to white and set the > drawing mode to winOverlay > > B) if the text color is white, set the background color to black and set the > drawing mode to winErase > > C) if the text color is something else, you may need to draw the text twice for > reliable results. Set the text color to black and the background color > to white and draw using the winMask mode. Then set the text color to the > desired color and draw using the winOverlay mode. > > Read the section "Special Drawing Modes" in the Palm OS Programmer's Companion > for information on the various drawing modes. (It's under User Interface > > Color and Grayscale Support > Direct Color Bitmaps.) > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
