Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 20th February 2007, 19:24   #1
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 442
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:
code:
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
Attached Files
File Type: zip notifytest.zip (40.1 KB, 86 views)
demiller9 is offline   Reply With Quote
Old 20th February 2007, 20:15   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 20th February 2007, 21:08   #3
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 442
Thanks Kichik. That helped!
demiller9 is offline   Reply With Quote
Reply
Go Back   Winamp 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