IO2 Tutorial CheckBox RadioButton
From NSIS Wiki
Jump to navigationJump to search
Tutorial for CheckBox & RadioButton
- Place the cursor in the middle of dialog 105 and select insert control.
- Choose "CHECKBOX/RADIOBUTTON", put some text in "caption" than hit "ok".
- * We put the two controls, we'll only use one: RadioButton, see notes below. *
- The control will appear in the dialog, you resize and stretch as many times and forms you like, see.
- Once you finish, with Resource Hacker, hide the dialog.
- You'll get the controls units, see.
- In the screenshot example, 73 75 76 14, will be the order for Left, Top, Right, Bottom values for the INI.
- So this will be, for:
- Left=73
- Top=75
- Right=76+left_value(73)=76+73=149
- Bottom=14+Top_value(75)=14+75=89
- Create your INI, with the new values:
- Left=73
- Top=75
- Right=149
- Bottom=89
Notes:
- This is the same for both CheckBox & RadioButton.
- Type=CheckBox
- Type=RadioButton
- If you want to ad space between the control and the text, just add (this might change the object's values):
- Text=" Space"