Moving Non-Image Windows

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

Moving Non-Image Windows

Barton, Robert
List,

I am trying to determine if it is possible to move a non-image window
within a macro.  the setLocation(x,y) function will only move an image
window and it would be helpful to be able to set a location for non-image
windows (ROI Manager and Window/Level especially) so that they do not get
covered up.

Thank you,

Robert
Reply | Threaded
Open this post in threaded view
|

Re: Moving Non-Image Windows

Wayne Rasband
> I am trying to determine if it is possible to move a non-image window
> within a macro.  the setLocation(x,y) function will only move an image
> window and it would be helpful to be able to set a location for
> non-image
> windows (ROI Manager and Window/Level especially) so that they do
> not get covered up.

The description of the setLocation(x,y) function at

     
http://rsb.info.nih.gov/ij/developer/macro/functions.html#setLocation

says that it is not limited to image windows if you are running ImageJ
1.39e or later. As an example, this macro

    if (isOpen("ROI Manager")) {
        selectWindow("ROI Manager");
        setLocation(0,0);
    }

moves the ROI Manager to the upper left corner of the screen.

-wayne