added io nextpage/prevpage macro's

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1140 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2002-09-22 11:58:04 +00:00
parent 238afa7925
commit 8943e01008
2 changed files with 21 additions and 9 deletions

View file

@ -106,20 +106,14 @@ FunctionEnd
Function .onNextPage
!insertmacro MUI_NEXTPAGE_OUTER
StrCmp ${IO_NOSETDIRECTION} "1" no_setdirection
!insertmacro MUI_INSTALLOPTIONS_SETDIRECTION ${IO_DIRECTION_NEXT}
no_setdirection:
StrCpy ${IO_NOSETDIRECTION} "0"
!insertmacro MUI_INSTALLOPTIONS_NEXTPAGE
!insertmacro MUI_NEXTPAGE SetPage
FunctionEnd
Function .onPrevPage
StrCmp ${IO_NOSETDIRECTION} "1" no_setdirection
!insertmacro MUI_INSTALLOPTIONS_SETDIRECTION ${IO_DIRECTION_PREV}
no_setdirection:
StrCpy ${IO_NOSETDIRECTION} "0"
!insertmacro MUI_INSTALLOPTIONS_PREVPAGE
!insertmacro MUI_PREVPAGE SetPage
FunctionEnd

View file

@ -1,4 +1,4 @@
;Modern UI Header File version 1.19g
;Modern UI Header File version 1.19h
;Written by Joost Verburg
;See Example.nsi & Multilanguage.nsi for an example of usage
@ -228,6 +228,24 @@
!macroend
!macro MUI_INSTALLOPTIONS_NEXTPAGE
StrCmp ${IO_NOSETDIRECTION} "1" no_setdirection
!insertmacro MUI_INSTALLOPTIONS_SETDIRECTION ${IO_DIRECTION_NEXT}
no_setdirection:
StrCpy ${IO_NOSETDIRECTION} "0"
!macroend
!macro MUI_INSTALLOPTIONS_PREVPAGE
StrCmp ${IO_NOSETDIRECTION} "1" no_setdirection
!insertmacro MUI_INSTALLOPTIONS_SETDIRECTION ${IO_DIRECTION_PREV}
no_setdirection:
StrCpy ${IO_NOSETDIRECTION} "0"
!macroend
!macro MUI_INSTALLOPTIONS_SHOW PAGE FILE IOBACK IONEXT
InstallOptions::dialog "$PLUGINSDIR\${FILE}"