On Jan 14, 2015, at 9:44 AM, Cyril Turiès <
[hidden email]> wrote:
The latest ImageJ daily build (1.49o23) adds a Dialog.setLocation(x,y) function to the macro language. Here is an example:
x=10;
y=200;
Dialog.create("Dialog");
Dialog.addMessage("This dialog is displayed at ("+x+","+y+").");
Dialog.setLocation(x,y);
Dialog.show()
And here is the JavaScript version:
x=10;
y=200;
gd = new GenericDialog("Dialog");
gd.addMessage("This dialog is displayed at ("+x+","+y+").");
gd.setLocation(x,y);
gd.showDialog()
-wayne
> The macro I wrote opens each image in a specified directory one by one and
> prompt the user to check a ROI with yes/no radiobuttons.
> If there is 300 images the user has to move the dialox box 300 times because
> it always displays over the image.
>
> Thank you in advance for your help.
>
> Cyril
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Dialog-Box-location-in-Macro-language-tp5011212.html> Sent from the ImageJ mailing list archive at Nabble.com.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html