Combee on Palm OS

Thursday, 3 June 2004  2:23 AM

Last month, I did a little research on how textWithNoteTableItem table items worked. A user had asked how to determine if a tap on a table cell was to the text or to the note icon when you use that type. I found the answer in the ListViewItemSelected function of ToDo.c from the To Do List source code. The To Do list is the only PIM app that uses this table style -- Address Book and Date Book both use custom drawing and a separate note column. When working with tables, it's a good idea to carefully study the PIM apps source in the samples folder, as they were written alongside the Table APIs. When you get the tblSelectEvent for your item that has the textWithNoteTableItem type, call TblEditing(tableP) to determine if you're in text editing mode. If this returns true, do nothing -- you're already in field edit mode for this cell. If it returns false, the user tapped on the note, and go to your note view.