Dear all,
What would you think about having the possibility to create NonBlockingGenericDialog within macro? 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 Philippe CARL Laboratoire de Bioimagerie et Pathologies UMR 7021 CNRS - Université de Strasbourg Faculté de Pharmacie 74 route du Rhin 67401 ILLKIRCH Tel : +33(0)3 68 85 41 84 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
> 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 |
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 |
Free forum by Nabble | Edit this page |