Pete,
Heres how I do it:
// set the initial selected item in the list
LstSetSelection(list, 1);
// update the trigger label to whatever sel is current in the list
CtlSetLabel(trigger_control, LstGetSelectionText(list, 1));
// note: you could always use the LstGetSelection to get the ID vs my
// hardcord #1
-J
On Wed, 10 Nov 1999 [EMAIL PROTECTED] wrote:
> Hi all,
> I hope this is a basic question that someone can answer:
>
> I've got a form that contains a popup trigger that is linked to a list. This
> works in the sense that if you click on the popup trigger then the linked
> list is displayed and the item that I selected through a previous call to
> LstSetSelection() is correct. After displaying the list and selecting an
> item, the text for the popup list is updated.
>
> But what is the best way to initialize the popup list with text to begin
> with? By default, it shows whatever text was assigned it from within
> Constructor. Do I have to do it myself with something LstGetSelectionText()
> and CtlSetLabel()? Or is there a better way?
>
> Thanks in advance to any responses,
> -Pete
>