Re: Fields of Generic Dialog out of the gd window
Posted by
Michael Schmid on
May 21, 2015; 8:00pm
URL: http://imagej.273.s1.nabble.com/Fields-of-Generic-Dialog-out-of-the-gd-window-tp5012904p5012908.html
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