!insertmacro radiobuttons makes some buggy behavior...
for example when i use a subsection i have to use something like this or all sections are enabled when subsection is checked.
Function .onselchange
!insertmacro SectionFlagIsSet ${EX} ${SF_SELECTED} selectedEX noEX
selectedEX:
!insertmacro UnselectSection ${EX1}
!insertmacro UnselectSection ${EX2}
!insertmacro UnselectSection ${EX3}
!insertmacro UnselectSection ${EX4}
!insertmacro UnselectSection ${EX5}
!insertmacro UnselectSection ${EX6}
!insertmacro UnselectSection ${EX7}
noEX:
FunctionEnd
then if i want to add radio button function to those sectiones with...
Function .onselchange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${EX1}
!insertmacro RadioButton ${EX2}
!insertmacro RadioButton ${EX3}
!insertmacro RadioButton ${EX4}
!insertmacro RadioButton ${EX5}
!insertmacro RadioButton ${EX6}
!insertmacro RadioButton ${EX7}
!insertmacro EndRadioButtons
!insertmacro SectionFlagIsSet ${EX} ${SF_SELECTED} selectedEX noEX
selectedEX:
!insertmacro UnselectSection ${EX1}
!insertmacro UnselectSection ${EX2}
!insertmacro UnselectSection ${EX3}
!insertmacro UnselectSection ${EX4}
!insertmacro UnselectSection ${EX5}
!insertmacro UnselectSection ${EX6}
!insertmacro UnselectSection ${EX7}
noEX:
FunctionEnd
it appears to work unless the subsection is checked again for some reason..the the radiobuttons have very strange behavior,seemingly ramdom section selection etc.is there a better way to do this?
for example when i use a subsection i have to use something like this or all sections are enabled when subsection is checked.
Function .onselchange
!insertmacro SectionFlagIsSet ${EX} ${SF_SELECTED} selectedEX noEX
selectedEX:
!insertmacro UnselectSection ${EX1}
!insertmacro UnselectSection ${EX2}
!insertmacro UnselectSection ${EX3}
!insertmacro UnselectSection ${EX4}
!insertmacro UnselectSection ${EX5}
!insertmacro UnselectSection ${EX6}
!insertmacro UnselectSection ${EX7}
noEX:
FunctionEnd
then if i want to add radio button function to those sectiones with...
Function .onselchange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${EX1}
!insertmacro RadioButton ${EX2}
!insertmacro RadioButton ${EX3}
!insertmacro RadioButton ${EX4}
!insertmacro RadioButton ${EX5}
!insertmacro RadioButton ${EX6}
!insertmacro RadioButton ${EX7}
!insertmacro EndRadioButtons
!insertmacro SectionFlagIsSet ${EX} ${SF_SELECTED} selectedEX noEX
selectedEX:
!insertmacro UnselectSection ${EX1}
!insertmacro UnselectSection ${EX2}
!insertmacro UnselectSection ${EX3}
!insertmacro UnselectSection ${EX4}
!insertmacro UnselectSection ${EX5}
!insertmacro UnselectSection ${EX6}
!insertmacro UnselectSection ${EX7}
noEX:
FunctionEnd
it appears to work unless the subsection is checked again for some reason..the the radiobuttons have very strange behavior,seemingly ramdom section selection etc.is there a better way to do this?
Comment