Skip to content
⌘ NSIS Forum Archive

Fill a combobox based on selection in other combobox

4 posts

JohaViss#

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.😢

I am totally lost here.

Regards Johan
jpderuiter#
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
Afrow UK#
If you don't know that you're using nsDialogs then I doubt you are. I.e look for nsDialogs::Create for example.

Stu