I have a multi column table set up, and am placing text into the cells
with the WinDrawChars command. The problem is that some table rows
need to be highlighted to a specific color. I am using
WinDrawRectangle to draw a rectangle the width of the table and the
height of the current row to draw the color. Then when I call the
WinDrawChars to place the text (with a different forecolor), the text
is not visible until I select the cell and enter the TableSelect
handler. Is there a way to draw the text over the rectangle, so the
information is displayed without having to interact with the table?
..or is there a different problem here?

RectangleType backgroundFill;
...

defaultFore=WinSetForeColor(noteColor);                         
WinDrawRectangle( &backgroundFill, 0);
WinSetForeColor(defaultFore);
...

defaultBack=WinSetBackColor(noteColor); 
defaultFore=WinSetTextColor(whiteText);
WinDrawChars( pText, StrLen( pText ), bounds->topLeft.x, bounds->topLeft.y );
WinSetBackColor(defaultBack);
WinSetTextColor(defaultText);

thanks
-Dan

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

Reply via email to