Archive: Fill a combobox based on selection in other combobox


Fill a combobox based on selection in other combobox
Hello,

I have a custom screen with 3 comboboxes.
The first one has data. (In my case world regions. - Asia, Europe, etc.)
The second and third one are empty.

When I select an item in the first combobox the second combobox has to be filled. (In my case countries in the selected region)
When I select an item in the second combobox the third combobox has to be filled. (In my case cities in the selected country from combobox 2)

How can I do this?
It seems that there are no 'events' that I can trap.
I know how to fill a combobox, but not how to detect a change in selection.:cry:

I am totally lost here.

Regards Johan


Do you use nsDialogs?
If not, you should.
You can use the OnChange function then.
See http://forums.winamp.com/showthread....39#post2598639 for an example


How can I tell if I am using nsDialogs?


If you don't know that you're using nsDialogs then I doubt you are. I.e look for nsDialogs::Create for example.

Stu