Archive: Radiobuttons Issue


Radiobuttons Issue
For the installer I'm creating, I'd like for there to be 2 sets of radio buttons that allow the selection of only 1 item in their group. However, I can only seem to get 1 of the 2 groups working properly, I get the following error when compiling (relating to the 2nd group of radio buttons):

3 warnings:
LangString "leve1" is not set in language table of language 1033
LangString "level1" is not set in language table of language 1033
LangString "level2" is not set in language table of language 1033
Each group is opened with 'SectionGroup' and closed with 'SectionGroupEnd', and I'm quite positive the sections are setup properly anyways as they work fine. However, I'm unsure if I've setup the Functions for them properly. If someone could review my code here and let me know what I've done wrong, it would be very much appreciated :)


Function .onInit

StrCpy $1 ${ip_only}
StrCpy $2 $(level1)

FunctionEnd

Function .onSelChange

!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${port_only}
!insertmacro RadioButton ${ip_and_port}
!insertmacro RadioButton ${ip_only}
!insertmacro EndRadioButtons

!insertmacro StartRadioButtons $2
!insertmacro RadioButton $(level1)
!insertmacro RadioButton $(level2)
!insertmacro EndRadioButtons

FunctionEnd

Nevermind.... syntax error. Using parenthesis instead of brackets.. *sigh*