implemented RFE #1547844 - default button of the abort warning

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4757 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-09-23 08:28:07 +00:00
parent 11d465de96
commit 67ff922222
3 changed files with 21 additions and 7 deletions

View file

@ -1,5 +1,8 @@
NSIS Modern User Interface - VERSION HISTORY
1.76 - September 23, 2006
* Added MUI_ABORTWARNING_CANCEL_DEFAULT
1.75 - April 1, 2006
* Added show function for the start menu page
* Added MUI_HEADER_TRANSPARENT_TEXT for transparent header texts

View file

@ -514,7 +514,9 @@ installer.</p>
<div class="settings">
<p><strong>MUI_ABORTWARNING_TEXT</strong> <span class=
"parameter">text</span><br />
Text to display on the abort warning messagebox.</p>
Text to display on the abort warning message box.</p>
<p><strong>MUI_ABORTWARNING_CANCEL_DEFAULT</strong><br />
Set the Cancel button as the default button on the message box.</p>
</div>
</div>
<h3><img class="trigger" alt="Open/Close section" id=
@ -528,7 +530,9 @@ uninstaller.</p>
<div class="settings">
<p><strong>MUI_UNABORTWARNING_TEXT</strong> <span class=
"parameter">text</span><br />
Text to display on the abort warning messagebox.</p>
Text to display on the abort warning message box.</p>
<p><strong>MUI_UNABORTWARNING_CANCEL_DEFAULT</strong><br />
Set the Cancel button as the default button on the message box.</p>
</div>
</div>
</div>
@ -1216,10 +1220,9 @@ Start Menu Folder page: <a href=
<h1>Version History</h1>
<div>
<ul>
<li>1.75 - April 1, 2006
<li>1.76 - September 23, 2006
<ul>
<li>Added show function for the start menu page</li>
<li>Added MUI_HEADER_TRANSPARENT_TEXT for transparent header texts</li>
<li>Added MUI_ABORTWARNING_CANCEL_DEFAULT</li>
</ul>
</li>
</ul>

View file

@ -312,7 +312,11 @@ Var /GLOBAL MUI_TEMP2
StrCmp $MUI_NOABORTWARNING "1" mui.quit
!endif
MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_ABORTWARNING_TEXT}" IDYES mui.quit
!ifdef MUI_ABORTWARNING_CANCEL_DEFAULT
MessageBox MB_YESNO|MB_ICONEXCLAMATION|MB_DEFBUTTON2 "${MUI_ABORTWARNING_TEXT}" IDYES mui.quit
!else
MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_ABORTWARNING_TEXT}" IDYES mui.quit
!endif
Abort
mui.quit:
@ -321,7 +325,11 @@ Var /GLOBAL MUI_TEMP2
!macro MUI_UNABORTWARNING
MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_UNABORTWARNING_TEXT}" IDYES mui.quit
!ifdef MUI_UNABORTWARNING_CANCEL_DEFAULT
MessageBox MB_YESNO|MB_ICONEXCLAMATION|MB_DEFBUTTON2 "${MUI_UNABORTWARNING_TEXT}" IDYES mui.quit
!else
MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_UNABORTWARNING_TEXT}" IDYES mui.quit
!endif
Abort
mui.quit: