You need to use CtlSetLabel to tell the trigger what to display.

Be careful not to set the label to a string longer than what is already displayed or 
you'll cause memory problems.

Regards,

John.

[EMAIL PROTECTED] wrote on 12/4/00 12:39:

Thanks, that worked, it's no longer crashing, but now once I select an item and the 
list disapears, the selection isn't shown in the popup trigger. I looked for a 
function to redraw the popup bu could'nt find one, any suggestions ?

Nick.



Scott L. Johnson wrote in message <7922@palm-dev-forum>...
>
>> From: Nicholas Breau [mailto:[EMAIL PROTECTED]]
>> I am using LstSetListChoices(listP, NULL, size),
>> but I am not making any calls like LstGetSelectionText(),
>> there is no code in the event handler that would crash
>
>But the OS itself calls LstGetSelectionText to try to set the text of the >popup 
>trigger control.  This is the default behavior of the OS if you return
>false from your popSelect event handler.  (Or if you don't have a popSelect >handler 
>at all, which amounts to the same thing.)
>
>To fix this, return true from your popSelect event handler, and include your
>own code in it to set the popup trigger text.
>
>-slj-
>
>
>





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to