PDA

View Full Version : Interactive change Sections


KirillKr
18th March 2004, 08:53
How I can make this:
1. If I select first section all ather section unchecked.
2. If I select second first unchecked and third check.

This only simple example, in real task I want do this with many different sections.

Joost Verburg
18th March 2004, 13:27
Use the Section.nsh macros. one-section.nsi is an example of sections working like option buttons.

KirillKr
19th March 2004, 07:59
Originally posted by Joost Verburg
Use the Section.nsh macros. one-section.nsi is an example of sections working like option buttons.
Thanks, but I have this structure:

1. SubSection
a. Section
b. Section
2. SubSection
a. Section
b. Section

And I want that only 1 section must be checked.
I write

Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${Section1}
!insertmacro RadioButton ${Section2}
!insertmacro RadioButton ${Section3}
!insertmacro RadioButton ${Section4}
!insertmacro EndRadioButtons
FunctionEnd

but if I click on not active subsection 2 sections checked.