On 5/30/99 1:20 AM, Lenny Palozzi ([EMAIL PROTECTED]) wrote:

>How do I set the initial text of the pop-up label, without putting a value
>in my .rcp file. Basically my items in the list are determined at
>run-time, and I'd like the pop-up label to be set to the first item in the
>list. 
...
>Using LstSetListSelection(list, 0) and/or LstDrawList(list) don't have an
>effect in updating the pop-up label.

Lenny,

LstSetListSelection doesn't set the popup's label, it just sets the 
list's selection.  You need to do something like this:

  CtlSetLabel (GetObjectPtr (kPopupTriggerID), LstGetSelectionText (list, 
0));

-Mike



Reply via email to