Login  Register

Re: NonBlockingGenericDialog within macro

Posted by CARL Philippe (LBP) on Apr 02, 2019; 5:34pm
URL: http://imagej.273.s1.nabble.com/NonBlockingGenericDialog-within-macro-tp5021962p5021967.html

Really thanks a lot Wayne!!!
Given especially that I bother you really a lot lately...

Le Mardi 2 Avril 2019 18:24 CEST, Wayne Rasband <[hidden email]> a écrit:

> > On Apr 2, 2019, at 5:18 AM, Philippe CARL <[hidden email]> wrote:
> >
> > Dear all,
> > What would you think about having the possibility to create
> > NonBlockingGenericDialog within macro?
>
> The latest ImageJ daily build (1.52o15) adds a Dialog.createNonBlocking() macro function. Here is an example:
>
>   Dialog.createNonBlocking("Crop");
>   msg = "Create or modify an area selection\n"
>      +"and then press \"OK\"";
>   Dialog.addMessage(msg);
>   Dialog.show();
>   run("Crop”);
>
> -wayne
>
>
> > The possibilities given by the macro Dialog. Tools are quite powerful but
> > the obtained dialogs are only modal.
> > So the only possibility within macros to have a non modal dialog is to use
> > the waitForUser method combined with different isKeyDown combinations.
> > I have an example code where I use such combinations providing thus 5
> > different options which makes it quite a lot of things to read and

> > understand for the user.
> > And all these "complicated" choices could simply be resumed by a very simple
> > Dialog box having only 2 Checkboxes.
> > But in the same time the user needs to have a non modal access to a couple
> > Plot and Log windows and/or data.
> > Given all this, it would really be cool to have as well a
> > NonBlockingGenericDialog within macro.
> > Of course the alternative could be as well that I translate all the code
> > (i.e. around 600 lines) from macro into java to not be bound anymore to the
> > described limitations.
> > Looking forward for your suggestions and ideas, I wish you all a nice day!
> > Philippe
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html





--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html