Do LstSetSelection, then get the text for the selection and set the popup
trigger controls label using CtlSetLabel with the selection text that you
fetched. The code would be something like
FormPtr frm = FrmGetActiveForm();
UInt16 listIndx = FrmGetObjectIndex(frm,myList);
ListPtr list = FrmGetObjectPtr(frm,listIndx);
UInt16 triggerIndx = FrmGetObjectIndex(frm,myTrigger);
LstSetSelection(list,selectedIndex);
CtlSetLabel(FrmGetObjectPtr(frm,triggerIndx),
LstGetSelectionText(list,selectedIndex));
>From: Johnathan Smith <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: Getting and Setting Popup and List
>Date: Fri, 7 Sep 2001 09:26:07 -0700 (PDT)
>
>Getting and Setting popup and list.
>
>I have a form with a popup on it which displays a
>list. I know to get the selected item I need to do a
>LstGetSelection on the list object. But if I would
>like a selected a item. I been using LstSetSelection
>on the list but the popup does not display the value??
>How can I do this?
>
>__________________________________________________
>Do You Yahoo!?
>Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
>http://im.yahoo.com
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/