fixed bug #1947388 - ${NSD_OnBack} doesn't work
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5606 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
685aacef36
commit
17c674375a
1 changed files with 24 additions and 7 deletions
|
@ -278,7 +278,7 @@ Header file for creating custom installer pages with nsDialogs
|
|||
!insertmacro __NSD_DefineControl DropList
|
||||
!insertmacro __NSD_DefineControl ListBox
|
||||
|
||||
!macro __NSD_OnEvent EVENT HWND FUNCTION
|
||||
!macro __NSD_OnControlEvent EVENT HWND FUNCTION
|
||||
|
||||
Push $0
|
||||
Push $1
|
||||
|
@ -293,16 +293,33 @@ Header file for creating custom installer pages with nsDialogs
|
|||
|
||||
!macroend
|
||||
|
||||
!macro __NSD_DefineCallback EVENT
|
||||
!macro __NSD_DefineControlCallback EVENT
|
||||
|
||||
!define NSD_On${EVENT} `!insertmacro __NSD_OnEvent ${EVENT}`
|
||||
!define NSD_On${EVENT} `!insertmacro __NSD_OnControlEvent ${EVENT}`
|
||||
|
||||
!macroend
|
||||
|
||||
!insertmacro __NSD_DefineCallback Click
|
||||
!insertmacro __NSD_DefineCallback Change
|
||||
!insertmacro __NSD_DefineCallback Notify
|
||||
!insertmacro __NSD_DefineCallback Back
|
||||
!macro __NSD_OnDialogEvent EVENT FUNCTION
|
||||
|
||||
Push $0
|
||||
|
||||
GetFunctionAddress $0 "${FUNCTION}"
|
||||
nsDialogs::On${EVENT} /NOUNLOAD $0
|
||||
|
||||
Pop $0
|
||||
|
||||
!macroend
|
||||
|
||||
!macro __NSD_DefineDialogCallback EVENT
|
||||
|
||||
!define NSD_On${EVENT} `!insertmacro __NSD_OnDialogEvent ${EVENT}`
|
||||
|
||||
!macroend
|
||||
|
||||
!insertmacro __NSD_DefineControlCallback Click
|
||||
!insertmacro __NSD_DefineControlCallback Change
|
||||
!insertmacro __NSD_DefineControlCallback Notify
|
||||
!insertmacro __NSD_DefineDialogCallback Back
|
||||
|
||||
!macro _NSD_AddStyle CONTROL STYLE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue