Old 13th November 2008, 09:39   #1
Totoche2607
Junior Member
 
Join Date: Nov 2008
Posts: 5
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,
Totoche2607 is offline   Reply With Quote
Old 13th November 2008, 13:51   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
MB_YESNO|MB_DEFBUTTON2
Yathosho is offline   Reply With Quote
Old 13th November 2008, 20:22   #3
Totoche2607
Junior Member
 
Join Date: Nov 2008
Posts: 5
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
code:
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


after
code:
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

Totoche2607 is offline   Reply With Quote
Old 14th November 2008, 06:02   #4
Totoche2607
Junior Member
 
Join Date: Nov 2008
Posts: 5
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 ?!?
Totoche2607 is offline   Reply With Quote
Old 14th November 2008, 07:12   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
The documentation for MessageBox lists all of its options.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 14th November 2008, 07:28   #6
Totoche2607
Junior Member
 
Join Date: Nov 2008
Posts: 5
Hello,

that's exactly what I don't find! A "documentation" page on the website...

a link please ...
Totoche2607 is offline   Reply With Quote
Old 14th November 2008, 07:43   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
http://nsis.sourceforge.net/Support
http://nsis.sourceforge.net/Docs
C:\Program Files\NSIS\NSIS.chm

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 14th November 2008, 07:50   #8
Totoche2607
Junior Member
 
Join Date: Nov 2008
Posts: 5
thank you very² much

"users" is fuzzy ; "Doc" is international ;-)
Totoche2607 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump