View Single Post
Old 8th July 2009, 15:35   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
To check a checkbox use
code:
${NSD_Check} $R0
To disable a control use
code:
${NSD_AddStyle} $R0 ${WS_DISABLED}
To be able to enable the checkbox later, use a global variable instead of $R0, and then use
code:
EnableWindow $MyCheckBox 1 ; 0 = disabled, 1 = enabled
to enable the checkbox.

Do you mean to check all radiobuttons at the same time?
That's against the nature of a radiobutton.
You can use
code:
${NSD_Check} $R1
on all radiobuttons to have them all selected at the same time.
But as soon as you select one of them, the rest will become unchecked.

Please read the nsDialogs documentation, it's all there:
http://nsis.sourceforge.net/Docs/nsD...tml#mref-check

JP
jpderuiter is offline   Reply With Quote