I have three things I would like help on:
1)I have a combo box on a custom page. I would like the Next button to be disabled until the user selects a value from the combobox either Yes No or I Dont Know... The users choice is stored in $installed.
2)I would like to display an extra button on everypage in the MUI. This button is a help button that will link to my installers .chm file which is copied to a temp directory in the .onInit Function.
Edited
3)I would like the next button to be disabled until the user has filled in all of the input boxes on a custom page.
If anybody has any ideas, it would be great!
Buttons!!
6 posts
1 & 3:
-disable next button using settings in ini file
-add the notify flag for all controls that need user interaction, check values in leave func for page and enable next button if needed with GetDlgItem and EnableWindow functions
2: you probably need to create a plugin and do some subclassing
-disable next button using settings in ini file
-add the notify flag for all controls that need user interaction, check values in leave func for page and enable next button if needed with GetDlgItem and EnableWindow functions
2: you probably need to create a plugin and do some subclassing
Thanks!
I'll look into that!
I'll look into that!
for #2 i can't remember if my help support plugin was able to do it or not (i know i was going to add support for it but really can't remember off hand if i did it or not)
-daz
-daz
Originally posted by AndersBut how?
1 & 3:
-disable next button using settings in ini file
I found
CancelEnabled=0
BackEnabled=0
but neither
NextEnabled=0
nor
NextButtonEnabled=0
are working!
You need to disable it with SendMesage in NSIS code unfortunately. Strange how they haven't added NextEnabled attribute to bog-standard InstallOptions.
Use:
GetDlgItem $R0 $HWNDPARENT 1
EnableWindow $R0 0
Use this at the top of the page's creation function.
Then in the page's leave function, use EnableWindow $R0 1 to re-enable button.
-Stu
Use:
GetDlgItem $R0 $HWNDPARENT 1
EnableWindow $R0 0
Use this at the top of the page's creation function.
Then in the page's leave function, use EnableWindow $R0 1 to re-enable button.
-Stu