MessageBox : default button
Hello,
With a simple MessageBox (YES, NO), "yes" is selected by default.
And i don't find how to make "No" by default.
Thank you,
Archive: MessageBox : default button
MessageBox : default button
Hello,
With a simple MessageBox (YES, NO), "yes" is selected by default.
And i don't find how to make "No" by default.
Thank you,
MB_YESNO|MB_DEFBUTTON2
Good evening,
The result of "MB_DEFBUTTON2" cancel the messagebox ...
I would like "NO" to be pre-selected in the message box and that you give me has answered "No" automaticly without asking the question!
Maybe I haven't put it in the right place ;-)
before
DefaultMessage:
StrCpy "$4" "$ExecuteProg" -4
MessageBox MB_YESNO|MB_TOPMOST|MB_ICONQUESTION `Voulez vous lancer $4?` IDYES WorkingDir IDNO EndLaunchApp
PersonnalMessage:
MessageBox MB_YESNO|MB_TOPMOST|MB_ICONQUESTION `$MessageToShow` IDYES WorkingDir IDNO EndLaunchApp
DefaultMessage:
StrCpy "$4" "$ExecuteProg" -4
MessageBox MB_YESNO|MB_DEFBUTTON2|MB_TOPMOST|MB_ICONQUESTION `Voulez vous lancer $4?` IDYES WorkingDir IDNO EndLaunchApp
PersonnalMessage:
MessageBox MB_YESNO|MB_DEFBUTTON2|MB_TOPMOST|MB_ICONQUESTION `$MessageToShow` IDYES WorkingDir IDNO EndLaunchApp
Hello,
and good morning...the night very good and profitable.
My mistake, it works very good...
Sorry and thank you very much Yathosho
[edit]Is there a place with a liste off all the messagebox option ?!?
The documentation for MessageBox lists all of its options.
Hello,
that's exactly what I don't find! A "documentation" page on the website...
a link please ...
http://nsis.sourceforge.net/Support
http://nsis.sourceforge.net/Docs
C:\Program Files\NSIS\NSIS.chm
thank you very² much
"users" is fuzzy ; "Doc" is international ;-)