You can check the current value you saved, and then use
CtlSetLabel(ControlPtr ControlP,
CharPtr newLabel) during initialization of the form to set the popup to the
selected value.
Zoltan
> -----Original Message-----
> From: Bruce Fistel [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 28, 1999 11:28 PM
> To: [EMAIL PROTECTED]
> Subject: updating the popup list label
>
>
> Is there a way to change the popup trigger label to reflect the current
> list selection when switching between applications? Let's say I create
> a list of 3 items, ColorList, on ColorForm
> red
> green
> blue.
> In Constructor I created the popup trigger, ColorPopup, and chose red
> as the label. While I'm in ColorForm, the currently active form, the
> popup trigger label displays whatever the current list selection is. If
> I choose green it becomes green. After every selection I save the list
> item number. Now some other form becomes active. Eventually ColorForm
> becomes the active form. When I go to display the popup trigger I want
> to green, the list item selected from ColorList, to be the popup trigger
> label, but red displays.
>
> -Bruce Fistel
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
> =*=*=*=*=*=*=*
>
> Bruce Fistel
> Zaphod Industries, Inc.
> P.O. Box 442
> Northwood, NH 03261-0442
>
> [EMAIL PROTECTED] (email)
> 603 942-5077 (voice)
> 603 942-7466 (fax)
>
> "If you pick up a starving dog and make him prosperous he will not bite
> you. This
> is the principal difference between a dog and a man."
> - Mark Twain
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
> =*=*=*=*=*=*=*
>
>
>