No one responded to my question when posted last week, so I figure it was
either too simple or was met with an I don't know shrug... regardless, I've
found the problem and in an effort to help folks who might be searching the
archive with a similar problem, here's the solution.. but first the problem:
The column in question was a note icon like the note in the address book
application in the OS. When clicking the note, it was not removing the
highlight.. here is the code that was doing that:
> case tblSelectEvent:
> DoMyModalDlg();
> TblUnhighlightSelection(event->data.tblSelect.pTable);
> TblEraseTable (event->data.tblSelect.pTable);
> TblDrawTable (event->data.tblSelect.pTable);
> TblReleaseFocus(event->data.tblSelect.pTable);
> FrmSetFocus(pForm, FrmGetObjectIndex(pForm, MainLookupField));
> handled = true;
> break;
This was solved today when I moved the TblUnhighlightSelection command in
front of the modal dialog.. in other words.. the above does not work, but
this does:
> case tblSelectEvent:
> TblUnhighlightSelection(event->data.tblSelect.pTable);
> DoMyModalDlg();
> TblEraseTable (event->data.tblSelect.pTable);
> TblDrawTable (event->data.tblSelect.pTable);
> TblReleaseFocus(event->data.tblSelect.pTable);
> FrmSetFocus(pForm, FrmGetObjectIndex(pForm, MainLookupField));
> handled = true;
> break;
I hope this helps someone in the future. :)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/