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:
parent
238afa7925
commit
8943e01008
2 changed files with 21 additions and 9 deletions
|
@ -106,20 +106,14 @@ FunctionEnd
|
||||||
Function .onNextPage
|
Function .onNextPage
|
||||||
|
|
||||||
!insertmacro MUI_NEXTPAGE_OUTER
|
!insertmacro MUI_NEXTPAGE_OUTER
|
||||||
StrCmp ${IO_NOSETDIRECTION} "1" no_setdirection
|
!insertmacro MUI_INSTALLOPTIONS_NEXTPAGE
|
||||||
!insertmacro MUI_INSTALLOPTIONS_SETDIRECTION ${IO_DIRECTION_NEXT}
|
|
||||||
no_setdirection:
|
|
||||||
StrCpy ${IO_NOSETDIRECTION} "0"
|
|
||||||
!insertmacro MUI_NEXTPAGE SetPage
|
!insertmacro MUI_NEXTPAGE SetPage
|
||||||
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function .onPrevPage
|
Function .onPrevPage
|
||||||
|
|
||||||
StrCmp ${IO_NOSETDIRECTION} "1" no_setdirection
|
!insertmacro MUI_INSTALLOPTIONS_PREVPAGE
|
||||||
!insertmacro MUI_INSTALLOPTIONS_SETDIRECTION ${IO_DIRECTION_PREV}
|
|
||||||
no_setdirection:
|
|
||||||
StrCpy ${IO_NOSETDIRECTION} "0"
|
|
||||||
!insertmacro MUI_PREVPAGE SetPage
|
!insertmacro MUI_PREVPAGE SetPage
|
||||||
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
;Modern UI Header File version 1.19g
|
;Modern UI Header File version 1.19h
|
||||||
;Written by Joost Verburg
|
;Written by Joost Verburg
|
||||||
|
|
||||||
;See Example.nsi & Multilanguage.nsi for an example of usage
|
;See Example.nsi & Multilanguage.nsi for an example of usage
|
||||||
|
@ -228,6 +228,24 @@
|
||||||
|
|
||||||
!macroend
|
!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
|
!macro MUI_INSTALLOPTIONS_SHOW PAGE FILE IOBACK IONEXT
|
||||||
|
|
||||||
InstallOptions::dialog "$PLUGINSDIR\${FILE}"
|
InstallOptions::dialog "$PLUGINSDIR\${FILE}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue