Start Radio Buttons macro doesn't handle section groups.
Greetings everyone,
I have a clear answer now to the issue that became rather cluttered on this post:
http://forums.winamp.com/showthread....80#post2388180
But a less cluttered framing of the question would be:
What is the effect that a SectionGroup has on the Radiobutton macros..... used in this fashion:
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${1notINgroup}
!insertmacro RadioButton ${2notINgroup}
!insertmacro RadioButton ${3InGroup}
!insertmacro RadioButton ${4InGroup}
!insertmacro RadioButton ${5InGroup}
!insertmacro EndRadioButtons
The simple state is that if the user clicks on the section group header in teh components page.... then ALL of the untis inside it will be marked as ON... and hence 3 will be on, but 4 will trump it, and 5 will trump 4.
The only way to fix this, is to do soemthing like this:
; presuming that 3InGroup,4InGroup,5InGroup is wrapped with
; a section group marker titled InGroup
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${1notINgroup}
!insertmacro RadioButton ${2notINgroup}
; get flags for group section
SectionGetFlags ${InGroup} $TempRadioButtonFlagsVar
; test against 35 which is the setting for if a user
; clicked directly onto the section group header....
; the flags for the group header would be 98 if they had
; clicked on a sub option under the group...
; See the flags in the help index under SectionGetFlags
StrCmp $TempRadioButtonFlagsVar "35" 0 NextRadioButton
; if we drop in then we clear the group....
IntOp $TempRadioButtonFlagsVar $TempRadioButtonFlagsVar & ${SECTION_OFF}
SectionSetFlags ${InGroup} $TempRadioButtonFlagsVar
NextRadioButton:
!insertmacro RadioButton ${3InGroup}
!insertmacro RadioButton ${4InGroup}
!insertmacro RadioButton ${5InGroup}
!insertmacro EndRadioButtons