Skip to content
⌘ NSIS Forum Archive

Only one can be selected

1 posts

_-_PSEJ_-_#

Only one can be selected

Hey, how to make in sections like this below that user can choose only one component ? if other is selected previous is deselected...and section group cannot be selected only items in group...

!include "Sections.nsh"
and
Function .onSelChange

!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${g1o1}
!insertmacro RadioButton ${g1o2}
!insertmacro RadioButton ${g1o3}
...

not working too good

SectionGroup "bbb"

Section /o "aaa"

SectionEnd

Section /o "aaa"

SectionEnd

SectionGroupEnd

SectionGroup "bbb"

Section /o "aaa"

SectionEnd

Section /o "aaa"

SectionEnd

SectionGroupEnd

Section /o "aaa"

SectionEnd

Section /o "aaa"

SectionEnd