Hi alanp you can use the following.

//to set the label of the popup Trigger with the current selection of the
list.
//we have to use this CtlSetLabel here explicitly when we r inside
popSelectEvent
//otherwise it is normal behaviour of pop Trigger to set the label with
selectedListText.
                Int16 lstItemNum = 0;
                Char *label = (Char *)MemPtrNew(10);
                ControlType *popTrig = (ControlType *)MemPtrNew(20);
                popTrig = (ControlType
*)GetObjectPtr(MainCategoryPopTrigger);
                                label = LstGetSelectionText (lstP,lstItemNum);//lstP 
is the pointer
to the list
                                CtlSetLabel(popTrig, label);


regards,

Dinesh Kumar


-- 
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