Actionbar bug - dialogs not displayed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Actionbar bug - dialogs not displayed

Johannes-P. Koch
Dear Listers,

there is an issue with the Actionbar plugin of Jerome. When I call a macro
by pressing a button of one actionbar using this codeline:

arg=run("Run...", "run=D:\\ImageJ\\newmacros\\test.txt");

and the test macro is copy/pasted from the dialog demo macro
(http://rsb.info.nih.gov/ij/macros/DialogDemo.txt). The dialog does not
get displayed, just the image without ramp gets created.

However, adding a code line run("8-bit"); before the Dialog.create
command, everything works fine and the dialog appears.

But adding a showMessage before the Dialog.create does NOT change
anything, neither does anything else, but run("") commands...

I am using ImageJ 1.44a and the latest version of Actionbar (3). Does
anyone experience the same, or is it just a simple issue with my settings
somewhere?

Thanks,
Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Actionbar bug - dialogs not displayed

Jerome Mutterer-3
Hi Johannes,
I don't think this is related to ActionBar. I'm getting the same behavior
running the following macro line in a blank macro window:
run("Run...", "run=/Applications/ImageJ/macros/DialogDemo.txt ");

the dialog is not displayed either.

Jerome.

On Wed, May 26, 2010 at 8:28 PM, Johannes-Paul M. Koch <
[hidden email]> wrote:

> Dear Listers,
>
> there is an issue with the Actionbar plugin of Jerome. When I call a macro
> by pressing a button of one actionbar using this codeline:
>
> arg=run("Run...", "run=D:\\ImageJ\\newmacros\\test.txt");
>
> and the test macro is copy/pasted from the dialog demo macro
> (http://rsb.info.nih.gov/ij/macros/DialogDemo.txt). The dialog does not
> get displayed, just the image without ramp gets created.
>
> However, adding a code line run("8-bit"); before the Dialog.create
> command, everything works fine and the dialog appears.
>
> But adding a showMessage before the Dialog.create does NOT change
> anything, neither does anything else, but run("") commands...
>
> I am using ImageJ 1.44a and the latest version of Actionbar (3). Does
> anyone experience the same, or is it just a simple issue with my settings
> somewhere?
>
> Thanks,
> Johannes
>
Reply | Threaded
Open this post in threaded view
|

Re: Actionbar bug - dialogs not displayed

Johannes-P. Koch
Jerome,

sorry for "blaming" the actionbar. I could have thought of performing your
simple test myself. Unfortunately, this does not solve the problem.

Any ideas?

Johannes

On Mi, 26.05.2010, 21:54, Jerome Mutterer wrote:

> Hi Johannes,
> I don't think this is related to ActionBar. I'm getting the same behavior
> running the following macro line in a blank macro window:
> run("Run...", "run=/Applications/ImageJ/macros/DialogDemo.txt ");
>
> the dialog is not displayed either.
>
> Jerome.
>
> On Wed, May 26, 2010 at 8:28 PM, Johannes-Paul M. Koch <
> [hidden email]> wrote:
>
>> Dear Listers,
>>
>> there is an issue with the Actionbar plugin of Jerome. When I call a
>> macro
>> by pressing a button of one actionbar using this codeline:
>>
>> arg=run("Run...", "run=D:\\ImageJ\\newmacros\\test.txt");
>>
>> and the test macro is copy/pasted from the dialog demo macro
>> (http://rsb.info.nih.gov/ij/macros/DialogDemo.txt). The dialog does not
>> get displayed, just the image without ramp gets created.
>>
>> However, adding a code line run("8-bit"); before the Dialog.create
>> command, everything works fine and the dialog appears.
>>
>> But adding a showMessage before the Dialog.create does NOT change
>> anything, neither does anything else, but run("") commands...
>>
>> I am using ImageJ 1.44a and the latest version of Actionbar (3). Does
>> anyone experience the same, or is it just a simple issue with my
>> settings
>> somewhere?
>>
>> Thanks,
>> Johannes
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Actionbar bug - dialogs not displayed

Gabriel Landini
On Wednesday 26 May 2010 21:52:10 you wrote:
> Any ideas?
> > run("Run...", "run=/Applications/ImageJ/macros/DialogDemo.txt ");

I am just guessing... would the "runMacro(name)" command do what you want?
Cheers.
G
Reply | Threaded
Open this post in threaded view
|

Re: Actionbar bug - dialogs not displayed

Johannes-P. Koch
Gabriel,

you are right. This is working perfectly!

Thanks!

Johannes

On Mi, 26.05.2010, 23:24, Gabriel Landini wrote:
> On Wednesday 26 May 2010 21:52:10 you wrote:
>> Any ideas?
>> > run("Run...", "run=/Applications/ImageJ/macros/DialogDemo.txt ");
>
> I am just guessing... would the "runMacro(name)" command do what you want?
> Cheers.
> G
>
>