|
|
#1 |
|
Member
Join Date: Aug 2004
Location: Beirut, Lebanon
Posts: 50
|
Choosing 1 out of 3 sections
I need to allow a user to select only 1 out of 3 sections in the components page, and I don't want to use radiobuttons because they can't be unselected. So I'm hoping someone can help me make something somehow exactly like this only for 3 options and not only 2. I tried making my own but no luck. The three sections are ${addc} ${addcb} and ${adp}.
Thank you |
|
|
|
|
|
#2 |
|
Member
Join Date: Aug 2004
Location: Beirut, Lebanon
Posts: 50
|
anyone ?
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
one-section.nsi in NSIS\examples should help.
is that what are you searching for ? OJi. |
|
|
|
#4 | |
|
Member
Join Date: Aug 2004
Location: Beirut, Lebanon
Posts: 50
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
|
Try this code:
code: Here Radiobutton script is activated only if one of sections was selected. |
|
|
|
|
|
#6 |
|
Member
Join Date: Aug 2004
Location: Beirut, Lebanon
Posts: 50
|
but radiobuttons can't be unselected :S
|
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
|
This code allow you to unselect all sections. Try it.
|
|
|
|
|
|
#8 | |
|
Member
Join Date: Aug 2004
Location: Beirut, Lebanon
Posts: 50
|
Quote:
|
|
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
|
About algorithim - it's easy.
Radiobutton script allow you to choice only one of 3 sections. So $5-variable keep this (single) section id. If you deselect this section you need to skeep radiobutton script (If - OrIf - OrIf statements) [$5 keep id of last selected section]. Next time you select section - radiobutton script activate again. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|