Login  Register

Dialog box placement

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Dialog box placement

Jim_Phillips
3 posts
Hello all, is there a macro language command to change the location of a dialog box à la the setLocation function for image windows?  If not, is there another straightforward way of changing the default location?  A macro we've developed requires a dialog box for user input, which, in a two monitor setup, always appears between the two screens which is rather irritating.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Dialog box placement

Michael Schmid
2136 posts
Hi Jim,

which operating system and Java version are you using?
Centering the dialogs depends on IJ.getScreenSize(), which should give the size of the primary screen.

Plugins>Utilities>ImageJ Properties should tell you the result of IJ.getScreenSize (near the bottom of the list).  Does it report the combined size of both screens? (it should not).

---
As far as I can say, currently there is no way to change the default position of the dialogs, without modifying the plugin that shows the dialog.
There are very few exceptions: The 'WaitForUser' dialog should remember its position, until ImageJ is restarted.

Michael
________________________________________________________________
On Aug 21, 2012, at 15:29, Jim_Phillips wrote:

> Hello all, is there a macro language command to change the location of a
> dialog box /à la/ the setLocation function for image windows?  If not, is
> there another straightforward way of changing the default location?  A macro
> we've developed requires a dialog box for user input, which, in a two
> monitor setup, always appears between the two screens which is rather
> irritating.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Dialog box placement

Jim_Phillips
3 posts
Thanks for the reply Michael.  I've just upgraded from 1.45s t 1.47b and I'm still having the same problem.  Only the size of the primary screen is reported in ImageJ properties, but dialog boxes still appear between the two.