In a macro I wrote last week, it selects a table to add arrays, then selects 
the image to do more measurements.  So it flips back and forth, but none of the 
users have a problem with this.
Maybe move the table off the right edge of the screen when it is defined and 
move it back to the left at the end?
Table.setLocationAndSize(x, y, width, height);
This sounds much cleaner than flipping windows.

Michael Cammer



________________________________
From: Norbert Vischer <[email protected]>
Sent: Sunday, April 7, 2024 6:56:07 AM
To: [email protected]
Subject: How to keep table behind image?

[EXTERNAL]

Hello all,

Has anyone an advice how to put the table behind?
In the first macro  I create an image and a table.
In the second macro I want to modify table behind the image - but the table 
occupies the image!


Best regards, Norbert



//======
var tabName = "MyTable.csv";

macro "Create Table and Image [a]"{
        close("ABC");
        close(tabName);
        Table.create(tabName);
        Table.setColumn("Nums", newArray(10), tabName);
        newImage("ABC", "8-bit ramp", 1000, 600, 1);
        run("Maximize");
}

macro "Change table [b]"{
        Table.set("Nums", 3, random, tabName);
        selectImage("ABC");
}

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

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

Reply via email to