> Now I want the screen to return to what it was - I need to get rid of
> the ["v" MySelection] and just have "v". Do I repaint the screen?
>
I saw a suggestion earlier that you use CtlSetLabel, but that will have a
weird flicker effect, as the OS sets the label on the trigger, and then you
clear it right afterwards.
It sounds like all you are trying to do, is not have the popup trigger label
get set to the text that the user selects from the list. If this is the
case, I think a better suggestion is to just set
handled = true;
in your popSelectEvent.
Probably what you want to do in your form event handler is as follows:
Boolean *HandleEvent (EventPtr eventP)
{
Boolean handled;
Char *selectionText;
switch (eventP -> eType)
{
case popSelectEvent:
selectionText = LstGetSelectionText (
listP -> data.popSelect.listP,
listP -> data.popSelect.selection);
// Do whatever you want w/ the text
// Return handled = true. The OS won't
// continue to process the popSelectEvent,
// and so the text of the trigger won't
// be updated.
handled = true;
break;
}
return handled;
}
It works, I just tried it.
Obviously, add in handlers for other events and UI types :)
Cheers,
-DGA
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/