IO2 Tutorial ComboBox DropList Listbox: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
DannyStaple (talk | contribs) (Pulled in content from CHM tutorial) |
DannyStaple (talk | contribs) m (Added images) |
||
Line 3: | Line 3: | ||
# Place the cursor in the middle of dialog 105 and select insert control. | # Place the cursor in the middle of dialog 105 and select insert control. | ||
# Choose "COMBOBOX" than hit "ok". | # Choose "COMBOBOX" than hit "ok". | ||
# The control will appear in the dialog, you resize and stretch as many times and forms you like | # The control will appear in the dialog, you resize and stretch as many times and forms you like. | ||
[[File:IO2ComboList1.png]] | |||
# * We put the three controls, we'll only use one: COMBOBOX, see notes below. * | # * We put the three controls, we'll only use one: COMBOBOX, see notes below. * | ||
# Once you finish, with Resource Hacker, hide the dialog. | # Once you finish, with Resource Hacker, hide the dialog. | ||
# You'll get the controls units | # 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. | # 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, | # * We stretch more the object so can be scroll at Nsis runtime, [[File:IO2ComboList3.png]] * | ||
# Got new values, | # Got new values, [[File:IO2ComboList4.png]]. | ||
# New ones: 24 23 151 72 | # New ones: 24 23 151 72 | ||
# So this will be, for: | # So this will be, for: |
Latest revision as of 14:36, 31 October 2006
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.