Login  Register

Re: Dialog Box location in Macro language

Posted by Cyril Turiès on Jan 15, 2015; 7:57am
URL: http://imagej.273.s1.nabble.com/Dialog-Box-location-in-Macro-language-tp5011212p5011229.html

Thank you very much Wayne for this addition in macro language.
Now the dialog box can be displayed on the right side of the active image:

getLocationAndSize(x, y, width, height);

Dialog.create("ROI check");
Dialog.addMessage("=> "+name);
items = newArray("Yes", "No");
Dialog.addRadioButtonGroup("Exclude image from analysis:", items, 1, 2, "No");
Dialog.addRadioButtonGroup("Redefine area manually:", items, 1, 2, "No");
Dialog.setLocation(x+width,y);
Dialog.show;


I am not ready to use the JavaScript version but it could be helpful for more advanced users.

Cyril