|
|
#1 |
|
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? |
|
|
|
|
|
#2 |
|
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. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2009
Posts: 3
|
Does anybody have any example code where this has been done?
|
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
NSIS\Docs\nsDialogs\Readme.html
NSIS\Examples\nsDialogs\example.nsi |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Oct 2009
Posts: 3
|
Thanks. I will take a look
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|