IO2 Tutorial ComboBox DropList Listbox
From NSIS Wiki
Jump to navigationJump to search
Tutorial for Combobox, Droplist & listbox
- Place the cursor in the middle of dialog 105 and select insert control.
- Choose "COMBOBOX" than hit "ok".
- The control will appear in the dialog, you resize and stretch as many times and forms you like.
- * We put the three controls, we'll only use one: COMBOBOX, see notes below. *
- Once you finish, with Resource Hacker, hide the dialog.
- You'll get the controls units. File:IO2ComboList2.png
- In the screenshot example, 24 23 151 13, will be the order for Left, Top, Right, Bottom values for the INI.
- * We stretch more the object so can be scroll at Nsis runtime, File:IO2ComboList3.png *
- Got new values, File:IO2ComboList4.png.
- New ones: 24 23 151 72
- So this will be, for:
- Left=24
- Top=23
- Right=151+left_value(24)=151+24=175
- Bottom=72+Top_value(23)=72+23=95
- Create your INI, with the new values:
- Left=24
- Top=23
- Right=175
- Bottom=95
Notes:
- This is the same for Combobox, Droplist & listbox.
- Type=Combobox
- Type=Droplist
- Type=listbox
- For the three of them you must add more bottom and/or right, depends about how long the words are and the number of them.