<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Return value of IJ.showMessageWithCancel() is ignored in macros"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=952">952</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Return value of IJ.showMessageWithCancel() is ignored in macros
</td>
</tr>
<tr>
<th>Product</th>
<td>Fiji
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>ImageJ1
</td>
</tr>
<tr>
<th>Assignee</th>
<td>imagej-bugs@imagej.net
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tiagoalvespedrosa@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>A (IJ1) macro calling showMessageWithCancel() is expected to terminate if the
user chooses "Cancel"
(<a href="http://imagej.nih.gov/ij/developer/macro/functions.html#showMessageWithCancel">http://imagej.nih.gov/ij/developer/macro/functions.html#showMessageWithCancel</a>).
In Fiji, however, macros continue to run after pressing "Cancel". Example:
showMessageWithCancel("In IJ1 a macro exits when the user clicks 'Cancel'");
showMessage("But not in Fiji (unless it runs from the IJ1 editor)");
Running the above in the buil-in editor (e.g., Plugins>New>Text Window) works
as expected.
Probably not a major issue, but it will likely break some macros down the road.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>