Archive: Can't get NOTIFY to work right


Can't get NOTIFY to work right
I am stuck (again)... I searched the forum and wiki for help and tried some examples I found, but still can't get the NOTIFY flag to give me back which field was triggered.

I am using the MUI and have a custom page with several droplist boxes and a button. I need to validate the contents of the droplists and stay on the page if there is a conflict. The button will reset the droplist values and should also stay on the page.

I've trimmed my program down to next to nothing for testing this. Right now my validate function looks like this:

Function myPage.Validate

ReadIniStr $R0 "$PLUGINSDIR\${CustomPageIni}" "Settings" "State"
DetailPrint "Settings - State is: $R0"
${If} $R0 > 0
Abort
${EndIf}

FunctionEnd


The detail line always shows "0" no matter whether I click the button, change a droplist selection or click Next. The program leaves the custom page every time. I've attached my simple test program if anybody cares to see it.

Thanks,
Don

MUI_PAGE_CUSTOMFUNCTION_LEAVE is not the way to set the leave function for custom pages. For custom pages, use the second parameter of the Page command to set the leave callback function.


Thanks Kichik. That helped!