Re: Accessing the image window while GenericDialog shows

Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Accessing-the-image-window-while-GenericDialog-shows-tp3701542p3701543.html

On Friday 22 September 2006 08:55, Guy Levy wrote:
> While an instance of GenericDialog is showing, I cannot access the image
> window with the mouse (move, zoom...) . It seems to be locked until I click
> OK or Cancel in the dialog.
> Is there a method to unlock it while the GenericDialog is still showing?

I don't think so because it is a modal dialog (it does not release the focus
until closed). The plugin stops and the dialog waits for you to make the
choices. This is very handy because in IJ the input can be recorded in a
macro.

If you need to access the image and have a dialog at the same time, then
you'll probably have to write the plugin in a different way (i.e. as a
non-modal dialog using a separate thread, like the Threshold_Colour, the
Align_4 plugins).

Regards,

Gabriel