<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello, <br>
    <br>
    You should use a "modal" dialog box. <br>
    From the <a
      href="http://help.scilab.org/docs/5.5.1/en_US/messagebox.html">help
      page</a>:  <span style="color: rgb(0, 0, 0); font-family:
      sans-serif; font-size: 16px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
      !important; float: none;">"modal" to create a modal dialog, any
      other string to create a non-modal dialog. Please note that
      "modal" can replace any of the other input arguments except msg.</span><br>
    <br>
    For your case it's anything like this: <br>
    <pre wrap="">rep = messagebox("Are you sure you want to modify this file?","Safety question","modal",["yes","no"])

if you click "yes" rep == 1
if "no" rep == 2
</pre>
    I think it can help you.<br>
    <br>
    Regards,<br>
    Vladislav<br>
    <br>
    <div class="moz-cite-prefix">Le 10/10/2014 12:01, Quentin Mazué a
      écrit :<br>
    </div>
    <blockquote cite="mid:1412935301376-4031323.post@n3.nabble.com"
      type="cite">
      <pre wrap="">Hello,

I would like to use a messagebox to aks if the user are sure he wants to
modify a configuration file.

I use the following command line : 
rep = messagebox("Are you sure you want to modify this file?","","Safety
question",["yes","no"])

My problem is :
"rep" value is always 0 because Scilab set "rep" to 0 before I can click on
Yes or No button.

Is it a syntax issu of messagebox or a bug?

Regards
Quentin Mazué



--
View this message in context: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/GUI-messagebox-issue-tp4031323.html">http://mailinglists.scilab.org/GUI-messagebox-issue-tp4031323.html</a>
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>