hi everyone,
i'm having problems inserting a string into an exising noneditable table cell.
as an example i set up a form with a button and a table.
when i hit the button the text isn't displayed. i already tried the
TblSetCustomDrawProcedure() function but the callback function wasn't called.
the following code snippets show how the table is initialized and how a
function tries to add a static string to the table cell.
thank you for any help
patrick
** table initialization for the string cell:
// walking through the table rows, setting column 0 to customTableItem
// and assigning a static memory chunk from the cellData array
{
TblSetItemStyle(table, i, 0, customTableItem);
TblSetItemPtr(table, i, 0, cellData[i]);
TblSetRowUsable(table, i, true);
}
TblSetColumnUsable(table, 0, true);
TblSetColumnUsable(table, 1, true);
** 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");
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/