You need to implement the TableLoadDataFunc and TableSaveDataFunc functions.

When the user shifts his focus away from a changed field, your TableSaveDataFunc will 
be called. You then need to call TblMarkRowInvalid on your totals row, then call 
TblRedrawTable which will call your TableLoadDataFunc. In that function you do your 
sum calculation and reteurn a text field with the the string containing the total 
amount.

All of this requires lots of very tricky memory allocation and field manipulation. 
This forun is full of posts from many newbies(including myself) who struggled for 
several weeks making this work.

If I haven't scared you away yet, do the following:

a) Download the Palm OS source code and study file Table.c so you can see what is 
happening under the covers.
b) Look at the source code for the built-in Address book application (file AddrEdit.c) 
included with the Palm OS SDK.
c) Search this form for posts containing "Table" and "Field", or "textTableItem". You 
can start with this thread:
http://news.palmos.com/read/messages?id=167959

Hope that helps...

Dave

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

Reply via email to