Archive: Radio buttons and Groupboxes


Radio buttons and Groupboxes
Hello,

I'm using 2 group boxes in my Page.
In each group box, I've got 2 radio buttons.

When I'm selecting onr radio buttons of the first group box, all the radio buttons are unselected (from the same group box and from the other).

I found a soluce in many forums : ${NSD_AddStyle} HANDLE ${WS_GROUP}|${WS_TABSTOP}

but that soluce is good when controls are generated in teh script.

My controls are generated in an INI file, so I can't do that command after creating my controls.
This is the last problem in my NSIS installer, so I hope I can do that...


Thanks a lot


if you are using the old InstallOptions(2/Ex) method, just add the "GROUP" value to the FLAGS directive of the -first- radiobutton of each group. e.g.


[Field 2]
Type=RadioButton
Text=Some text
Flags=GROUP|NOTIFY

[Field 3]
Type=RadioButton
Text=Some text
Flags=NOTIFY

[Field 4]
Type=RadioButton
Text=Some text
Flags=GROUP|NOTIFY

[Field 5]
Type=RadioButton
Text=Some text
Flags=NOTIFY