Try this:
UInt16 listitem;
ListPtr lst;
ControlType *ctrl
Char* bonus;
if (event->eType == popSelectEvent)
{
if (event->data.popSelect.listID > 1)
{
lst = GetObjectPtr(YourList);
listitem = LstGetSelection(lst);
bonus = LstGetSelectionText (lst, listitem);
ctrl = GetObjectPtr (YourListPopTrigger);
CtlSetLabel(ctrl, bonus);
handled = true;
}
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
