I just noticed an interesting behavior with the Palm OS 3.5 color ROM. I
ran this on POSE 3.0a4.
My form has a table that extends into the area that will be obscured by
the system Find dialog. Here's the test case:
1) Select an item in the table in that area that will be obscured by the
find dialog.
2) Press the silk screened Find button to bring up the find dialog.
3) Hit cancel. The item is no longer selected.
Behind the scenes:
Just before the find dialog comes up (and again after the dialog is
dismissed), my application gets a FrmUpdateEvent to which I respond with
a FrmDrawForm() call. The form redraws but the selection is no longer
highlighted!
I added a TblSelectItem() call in the FrmUpdateEvent handling but nothing
happens. My guess is that the OS thinks it is already highlighted.
So is this a bug or a feature?
One workaround is to unhighlight and then highlight it again with code
like this:
if (TblGetSelection(tbl, &row, &column))
{
TblUnhighlightSelection(tbl);
TblSelectItem(tbl, row, column);
}
This works but it does not seem like it should be necessary.
- Clay
Clay M. Thompson C R E A T I V E C R E E K
MathU Professional financial and scientific calculators
MathU Pro for the Palm Computing Platform.
One Plus One ------- www.creativecreek.com ---------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html