Better support for code between macro's

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1055 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2002-09-19 21:10:30 +00:00
parent 3c114d0c26
commit 9ba0e9cdbd

View file

@ -1,4 +1,4 @@
;Modern UI Header File version 1.19 ;Modern UI Header File version 1.19b
;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
@ -34,12 +34,7 @@
!macro MUI_INNERDIALOG_INIT !macro MUI_INNERDIALOG_INIT
;Extra text elements on the inner dialogs
Push ${TEMP1} Push ${TEMP1}
Push ${TEMP2}
FindWindow ${TEMP1} "#32770" "" $HWNDPARENT
!macroend !macroend
@ -49,11 +44,14 @@
!macroend !macroend
!macro MUI_INNERDIALOG_TEXT LANGID ELEMENT TEXT !macro MUI_INNERDIALOG_TEXT LANGID CONTROL TEXT
;Text on inner dialogs components
StrCmp $LANGUAGE ${LANGID} "" +3 StrCmp $LANGUAGE ${LANGID} "" +3
GetDlgItem ${TEMP2} ${TEMP1} ${ELEMENT} FindWindow ${TEMP1} "#32770" "" $HWNDPARENT
SendMessage ${TEMP2} ${WM_SETTEXT} 0 "STR:${TEXT}" GetDlgItem ${TEMP1} ${TEMP1} ${CONTROL}
SendMessage ${TEMP1} ${WM_SETTEXT} 0 "STR:${TEXT}"
!macroend !macroend
@ -67,7 +65,6 @@
!macro MUI_INNERDIALOG_END !macro MUI_INNERDIALOG_END
done: done:
Pop ${TEMP2}
Pop ${TEMP1} Pop ${TEMP1}
!macroend !macroend
@ -120,10 +117,6 @@
!macro MUI_PAGE_INIT !macro MUI_PAGE_INIT
Push ${TEMP1} Push ${TEMP1}
Push ${TEMP2}
GetDlgItem ${TEMP1} $HWNDPARENT 1037
GetDlgItem ${TEMP2} $HWNDPARENT 1038
!macroend !macroend
@ -137,9 +130,11 @@
;Text on the white rectangle ;Text on the white rectangle
StrCmp $LANGUAGE ${LANGID} "" +3 StrCmp $LANGUAGE ${LANGID} "" +4
GetDlgItem ${TEMP1} $HWNDPARENT 1037
SendMessage ${TEMP1} ${WM_SETTEXT} 0 "STR:${TEXT}" SendMessage ${TEMP1} ${WM_SETTEXT} 0 "STR:${TEXT}"
SendMessage ${TEMP2} ${WM_SETTEXT} 0 "STR:${SUBTEXT}" GetDlgItem ${TEMP1} $HWNDPARENT 1038
SendMessage ${TEMP1} ${WM_SETTEXT} 0 "STR:${SUBTEXT}"
!macroend !macroend
@ -153,8 +148,6 @@
!macro MUI_PAGE_END !macro MUI_PAGE_END
done: done:
Pop ${TEMP2}
Pop ${TEMP1} Pop ${TEMP1}
!macroend !macroend