> I am trying to get the popup trigger text that is displayed in the form to
> match the current selection on a list.
Now the fast of the matter is that you should return FALSE and
let the system handle the redrawing of the popcontrol BUT on
a new project when I passed false the system did'nt redraw the
control as it has in the past. Donno why but if passing false
don't redraw your popcontrol try the following...
case popSelectEvent: // PopUpTrigger event...
// get the selection
ActiveEntry=eventP->data.popSelect.selection;
// do something with the selection
// then repaint the control
// for some ungodly reason the system will NOT update the pop control
// set the list selection
LstSetSelection(eventP->data.popSelect.listP,
eventP->data.popSelect.selection);
// redraw the control's label
CtlSetLabel (GetObjectPtr(ObjID),
LstGetSelectionText(GetObjectPtr(ObjID), eventP->data.popSelect.selection));
handled = false; // this SHOULD properly redraw the pop but it aint...
break;
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/