If you use LstPopupList, the program will wait there to get an user input.  In
the following code after LstPopupList, you can do whatever you want, including
updating the trigger lable. After all that is done you need to return handled =
true for your popuptrigger event so it won't popup the list the second time.  
You don't need to handle the list event if all you need is the selection using
LstPopupList. 

Otherwise return false without doing LstPopuplist, handle the list events and
use LstGetSelection to get the selection.

Max

--- Craig Deelsnyder <[EMAIL PROTECTED]> wrote:
> Sorry I didn't read the whole thread, but I got this error when the popup
> trigger does not have it's list id set to the appropriate list (I had it set
> to 0).
> 
> Also, has anyone had problems with the list popping up twice?  I have the
> list id set to the appropriate list.  Then in the select event of the
> trigger, I do a LstPopupList, get the selection, do some processing with the
> selected value, then set handled=false.  The problem is that it is showing
> the list twice in a row.
> 
> I think I understand why it's doing it (the associated list ID and me doing
> LstPopupList handled=false), but what should I be doing so that I can still
> process the selection right away and get it to update the text of the
> trigger appropriately?
> 
> Thanks,
> Craig
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas
> Maeder
> Sent: Tuesday, November 13, 2001 6:59 AM
> To: Palm Developer Forum
> Subject: Re: Can't get popup trigger to work
> 
> 
> Wade Guthrie wrote:
> >
> >         Form.c, Line: 1728, Object not in form
> 
> 1) you should check the return values before using them again
> 2) what line of your code results in this error message?
> 
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to