Skip to content
⌘ NSIS Forum Archive

Droplist

5 posts

sissy#

Droplist

Hi Guys,

Using a Droplist how can I have the text thats showning mean a code.

IE

Holidays|Shopping|Time Out
...22.......33......44....

So when Holidays is selected it returns the value 22 and not the text?

Thanks.
Red Wine#
ReadIniStr $0 <yourInstallOptions.ini> <DropList Field> <State>
strcmp $0 'Holidays' 0 +3
strcpy $0 '22'
goto next
strcmp $0 'Shopping' 0 +3
strcpy $0 '33'
goto next
..................
..................
next:
sissy#
Thanks Red Wine appreciated...

Was hoping for an easier/cleaner solution, but eh we cant always get what we want and will certainly accomplish the task at hand 🙂

Would be nice to have {Holidays:22}|{Shopping:33} but im probably off with the fairys 😉

Have a good one.
Anders#
It should be possible, I think you can store the numbers as the LPARAM(userdata) for each item, but this needs a little win32 and system plugin skills to implement