If you use a custom draw procedure, I beleive that drawing the text onto the screen is your responsibility, the OS does not handle this for you. To draw the text, use WinDrawChars() before the string memory is released. See below. Parameters x and y will be passed into your CustomDrawProcedure through the RectanglePtr. Tables can be very confusing. I recommend "Palm OS Programming Bible" by Lonnon Foster.
Kraig > ** function called if user hits the button, try to add a static string to the > cell > // currRowIndex is a global variable > TblSetRowUsable(table, currRowIndex, true); > TblMarkRowInvalid(table, currRowIndex); > // copy a static string > pCellStr = MemHandleLock(cellData[currRowIndex]); > StrCopy(pCellStr, "some text"); // Draw your string WinDrawChars (pCellStr, len, x, y); > MemHandleUnlock(cellData[currRowIndex]); > > TblRedrawTable (table); > currRowIndex++; -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
