"Jim Hoeger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Do I use CustomTableItem or TblSetCustomDrawProcedure? Once I understand
> how to do it, I'm sure it will seem like so many other programming things
in
Both. When initialising the table, use:
TblSetItemStyle (tblP, row, col, customTableItem);
Then set up a callback for each col:
TblSetCustomDrawProcedure(tblP, col, Your_Custom_Draw_Procedure);
Your "Your_Custom_Draw_Procedure" has a signature thus:
void Your_Custom_Draw_Procedure(void* tblP, Int16 row, Int16 column,
RectangleType *bounds) {
Use the row value MOD 2 to indicate the background colour you should set
with a call to:
WinSetBackColor
Then erase the rectangle in the new colour with a call to:
WinEraseRectangle(bounds, 0);
Then simple draw the contents of the cell... (Optionally calling
WinSetForeColor beforehand)
Couldn't be easier huh? I love tables..... Not.
Alan
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/