x=getNumber(); HOW TO add rows?

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

x=getNumber(); HOW TO add rows?

maringa
Hi,
I use this function:

var x=1; {
x= getNumber("enter number of somas",0);
print("number of somas="+x);
}

which gives a dialogue box where I can input numbers, but how do I extend the number of
rows to more than one?

The idea is that it should be possible to fill in a couple of things, press OK, and the macro
performs some calculations (for example divides number of somas with number of endpoints)
and then presents everything in a new result window. Is this possible to do?

Any suggestions?
Reply | Threaded
Open this post in threaded view
|

Re: x=getNumber(); HOW TO add rows?

lechristophe
Maringa,
Have a look at the Dialog.create function and dialog building/parsing
functions below for multiple inputs.
http://rsbweb.nih.gov/ij/developer/macro/functions.html#D

Christophe

On Fri, Jul 10, 2009 at 1:24 PM, maringa<[hidden email]> wrote:

> Hi,
> I use this function:
>
> var x=1; {
> x= getNumber("enter number of somas",0);
> print("number of somas="+x);
> }
>
> which gives a dialogue box where I can input numbers, but how do I extend
> the number of
> rows to more than one?
>
> The idea is that it should be possible to fill in a couple of things, press
> OK, and the macro
> performs some calculations (for example divides number of somas with number
> of endpoints)
> and then presents everything in a new result window. Is this possible to do?
>
> Any suggestions?
> --
> View this message in context: http://n2.nabble.com/x%3DgetNumber%28%29--HOW-TO-add-rows--tp3236357p3236357.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>