|
|
#1 |
|
Junior Member
Join Date: Apr 2006
Posts: 2
|
Changing Button Text
I want to change the text of the Next button on a MUI custom page depending on the radio button the user selects. I've found examples of changing the text for the Next button, but it only seemed to set it on a leave function. Is there any way to do this?
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
Add the notify flag to the radio buttons, then check the state item in the settings section in the leave function for the page (Take a look at \Examples\InstallOptions\testnotify.nsi)
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2006
Posts: 2
|
I have the Notify flag on now and I am using this to read the state:
!insertmacro MUI_INSTALLOPTIONS_READ $R1 "NewInstall.ini" "Field 2" "State" After that i am basically saying: If it's 1 do something....if it's anything else, do something else. So how do I actually change the text of the Next button once the radio button is selected? |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Oct 2005
Posts: 189
|
You need to check the state of the [Settings] entry, to see which item notified that it was clicked on:
code: The file Anders pointed to should have everything you need. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|