Old 23rd October 2009, 16:21   #1
jimmy_kick_ass
Junior Member
 
Join Date: Oct 2009
Posts: 3
Radio Button

I am trying to use the standard Modern UI installer.

I have 2 radio buttons, neither is checked by default

I want the Next button to be greyed out unless one of the radio buttons is checked

What is the best way to do this?
jimmy_kick_ass is offline   Reply With Quote
Old 23rd October 2009, 19:53   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
I only know how to do this with nsDialogs. It might perhaps also be possible with InstallOptions, but I would not know how.

1) Grey out the Next button before you call nsDialogs::Show
2) Define an OnClick callback function for both radio buttons using ${NSD_OnClick}
3) In those callback functions, enable the Next button.
MSG is offline   Reply With Quote
Old 26th October 2009, 06:41   #3
jimmy_kick_ass
Junior Member
 
Join Date: Oct 2009
Posts: 3
Does anybody have any example code where this has been done?
jimmy_kick_ass is offline   Reply With Quote
Old 26th October 2009, 09:58   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
NSIS\Docs\nsDialogs\Readme.html
NSIS\Examples\nsDialogs\example.nsi
MSG is offline   Reply With Quote
Old 28th October 2009, 07:24   #5
jimmy_kick_ass
Junior Member
 
Join Date: Oct 2009
Posts: 3
Thanks. I will take a look
jimmy_kick_ass 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