IO2 Tutorial CheckBox RadioButton

From NSIS Wiki
Jump to navigationJump to search

Tutorial for CheckBox & RadioButton

  1. Place the cursor in the middle of dialog 105 and select insert control.
  2. Choose "CHECKBOX/RADIOBUTTON", put some text in "caption" than hit "ok".
  3. * We put the two controls, we'll only use one: RadioButton, see notes below. *
  4. The control will appear in the dialog, you resize and stretch as many times and forms you like, see.
  5. Once you finish, with Resource Hacker, hide the dialog.
  6. You'll get the controls units, see.
  7. In the screenshot example, 73 75 76 14, will be the order for Left, Top, Right, Bottom values for the INI.
  8. So this will be, for:
  9. Left=73
  10. Top=75
  11. Right=76+left_value(73)=76+73=149
  12. Bottom=14+Top_value(75)=14+75=89
  13. Create your INI, with the new values:
  14. Left=73
  15. Top=75
  16. Right=149
  17. 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"