Use of showImageWithCancel("message") ?
Posted by
Alan Hewat on
Feb 03, 2010; 5:21pm
URL: http://imagej.273.s1.nabble.com/Use-of-showImageWithCancel-message-tp3689513.html
According to the IJ doc
http://rsbweb.nih.gov/ij/developer/api/ij/IJ.htmlshowImageWithCancel("message") should return "false" if CANCEL is
clicked and otherwise "true".
But in ImageJ 1.43o I get the error "number or numeric function expected" for:
if(!showMessageWithCancel("Is this OK?")) showMessage("You clicked CANCEL");
I want to branch to alternative actions according to "OK" or "CANCEL".
So far as I can see showMessageWithCancel() acts just like
showMessage() except that it has a CANCEL button that simply exits the
routine :-(
Alan
______________________________________________
Dr Alan Hewat, NeutronOptics, Grenoble, FRANCE
<
[hidden email]> +33.476.98.41.68
http://www.NeutronOptics.com/hewat______________________________________________