Old 4th October 2007, 05:50   #1
pospec
Senior Member
 
pospec's Avatar
 
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
Sections, SectionGroups -- selecting only one section

I looked on the threads about managing selected sections, but I didn't find anything nice what solves my problem.

My goal: two sections and sectiongroup containing another two sections. User can select EXACTLY one section of total count of 4 sections.

I don't see any other way than:
a) disable the group
AND
b) manage every possible situation that can happen in .onSelChange.

Macros StartRadioButtons and RadioButton from sections.nsh are nice, but I couldn't find a way, how to perform this "mutual exclusion" with them.

Can anyone help me please?

Last edited by pospec; 4th October 2007 at 08:04.
pospec is offline   Reply With Quote
Old 4th October 2007, 19:30   #2
pospec
Senior Member
 
pospec's Avatar
 
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
Nobody?
pospec is offline   Reply With Quote
Old 5th October 2007, 05:46   #3
pospec
Senior Member
 
pospec's Avatar
 
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
OK, I'll post my experiment. Finally, macros StartRadioButtons and RadioButton was useful.

I have what I needed now. Can anyone tell me if is this way the easiest one? Thank you.
Attached Files
File Type: nsi one-section-my.nsi (1.3 KB, 191 views)
pospec is offline   Reply With Quote
Old 5th October 2007, 08:56   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
The RadioButton is indeed the easiest way to achieve this.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump