I have a table of data split into catagories. When you tap on one row, it
selects the row, and a popup trigger is made useable. The list selection and
tirgger label are also set to the current catagory via the following code form
the form's event handler:
case tblSelectEvent:
// enable CurrFolder popup and list
ControlPtr ctlP =
(ControlPtr)GetFrmObjectPtr(frmP,
SummaryCurrFolderPopTrigger);
ListPtr lstP = (ListPtr)GetFrmObjectPtr(frmP,
SummaryFolderList);
LstSetSelection(lstP, atoi(CurrFolder));
CategorySetTriggerLabel(ctlP,
LstGetSelectionText(lstP, atoi(CurrFolder)));
CtlShowControl(ctlP);
handled = false;
break;
This list allows you to move that row to a different catagory by making a
selection in the list. After you have moved it, the item dissappears from the
table, the popuptrigger is hidden again.
The problem is that for the next item the list pops up, the catagory that was
selected the previous time is still selected. Instead, I want the catagory that
the table is currently showing (and hence the row that was selected belongs to)
to be highlighted. I thought that LstSetSelection should be doing this.
Steve Cochran
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/