ReturnPage

From NSIS Wiki

Author: sirbabyface (talk, contrib)


Links

ReturnPage.zip (277 bytes)

Description

ReturnPage macros add the possibility to control if a user is returning to a page or not. This might be useful if you want to restore controls values (TextBox, CheckBox, ...).

Just include the header file ReturnPage.nsh. It can be included with:

!include 'ReturnPage.nsh'

On each show function of you custom pages, pre functions, add this line at the top.

${ReturnPage} ''number''

And add this line at the end.

${ReturnPageEnd} ''number''

To check if you are returning to a page, I recommend to also use the LogicLib.

Small example of usage:

${ReturnPage} 1
 
...
 
${If} $ReturnPage1 == false
     # Do Stuff, like initialization of global variables
${EndIf}
 
...
 
${ReturnPageEnd} 1
Personal tools
donate