Fields of Generic Dialog out of the gd window

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

Fields of Generic Dialog out of the gd window

Philippe GENDRE
Dear List,

If a Generic Dialog window has too much fields, some of them cannot be
reached because they are not displayed on the screen.

Is there a way to adjust the fields size of a gd to the window size or to
arrange the different fields on several columns ?

Best regards,

Philippe GENDRE

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

Re: Fields of Generic Dialog out of the gd window

ctrueden
Hi Philippe,

> If a Generic Dialog window has too much fields, some of them cannot be
> reached because they are not displayed on the screen.
>
> Is there a way to adjust the fields size of a gd to the window size or
> to arrange the different fields on several columns ?

Why not use ImageJ2 parameterized scripts instead? The UI automatically
adds scroll bars as needed when the input panel gets large.

http://imagej.net/Script_parameters

Regards,
Curtis

On Thu, May 21, 2015 at 1:28 PM, Philippe GENDRE <[hidden email]>
wrote:

> Dear List,
>
> If a Generic Dialog window has too much fields, some of them cannot be
> reached because they are not displayed on the screen.
>
> Is there a way to adjust the fields size of a gd to the window size or to
> arrange the different fields on several columns ?
>
> Best regards,
>
> Philippe GENDRE
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

Re: Fields of Generic Dialog out of the gd window

Michael Schmid
In reply to this post by Philippe GENDRE
Hi Philippe,

you can use addCheckboxGroup for checkboxes.

For other fields, you can only use addPanel(), but then you have to care about all the listeners yourself, and it does not work with macros or IJ.run() commands (neither macro recording nor automatic decoding macro options).

I must admit that something like a GenericDialog.stayOnLine() command is also on my wishlist for quite a while, typically for combining numbers and booleans (e.g. fixing a fit parameter for custom curve fitting code, or enabling/disabling a feature).
The reason why I did not propose it yet was that I am not sure how to do it such that
(1) the UI looks nice when combining different field types (numbers, texts, checkboxes),
(2) and repeating field names are not a problem (e.g. if many checkboxes are named 'fixed', they would have to be numbered for macros fix_01, fix_02 or so).


Michael
________________________________________________________________
On May 21, 2015, at 20:28, Philippe GENDRE wrote:

> Dear List,
>
> If a Generic Dialog window has too much fields, some of them cannot be
> reached because they are not displayed on the screen.
>
> Is there a way to adjust the fields size of a gd to the window size or to
> arrange the different fields on several columns ?
>
> Best regards,
>
> Philippe GENDRE

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

Re: Fields of Generic Dialog out of the gd window

Philippe GENDRE
Hi Curtis and Michael,

Thank you for your quick and advised replies.

The meaning of the ImageJ user I am, leads me to consider the alternative
to create two gd because this is the easiest way for me at short term. It
also makes me want to have a look on IJ2 in the future...

BR.

Philippe

2015-05-21 22:00 GMT+02:00 Michael Schmid <[hidden email]>:

> Hi Philippe,
>
> you can use addCheckboxGroup for checkboxes.
>
> For other fields, you can only use addPanel(), but then you have to care
> about all the listeners yourself, and it does not work with macros or
> IJ.run() commands (neither macro recording nor automatic decoding macro
> options).
>
> I must admit that something like a GenericDialog.stayOnLine() command is
> also on my wishlist for quite a while, typically for combining numbers and
> booleans (e.g. fixing a fit parameter for custom curve fitting code, or
> enabling/disabling a feature).
> The reason why I did not propose it yet was that I am not sure how to do
> it such that
> (1) the UI looks nice when combining different field types (numbers,
> texts, checkboxes),
> (2) and repeating field names are not a problem (e.g. if many checkboxes
> are named 'fixed', they would have to be numbered for macros fix_01, fix_02
> or so).
>
>
> Michael
> ________________________________________________________________
> On May 21, 2015, at 20:28, Philippe GENDRE wrote:
>
> > Dear List,
> >
> > If a Generic Dialog window has too much fields, some of them cannot be
> > reached because they are not displayed on the screen.
> >
> > Is there a way to adjust the fields size of a gd to the window size or to
> > arrange the different fields on several columns ?
> >
> > Best regards,
> >
> > Philippe GENDRE
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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