Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 16th July 2008, 11:20   #1
scooterNSIS
Junior Member
 
Join Date: Jul 2008
Posts: 4
How to get state of NSD_RadioButtons

Hi,

I'm a newbie to NSIS.

I wonder how to get the state of NSD_RadioButtons. A working example would be very welcome, *especially* on these questions:

- In which part of the NSI is the code to be put? (Sction/Function).
- How can the state be retrieved and how do I have to write the code dealing with a special state? E. g.,

- Create RadioButton
- Get button state
- If state = checked then ... else ...

All of the examples I found were dealing with Checkboxes, and adapting the code for RadioButtons didn't work for some reason.
scooterNSIS is offline   Reply With Quote
Old 16th July 2008, 15:16   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,167
Send a message via ICQ to Yathosho
i havn't tried, but i guess you have to change the CB portion of the code to RB?
Yathosho is offline   Reply With Quote
Old 16th July 2008, 18:00   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,779
check boxes and radio buttons are pretty much the same thing when it comes to getting the state, the same code should work without the need to modify it

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp 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