Re: Manual choice within a GenericDialog
Posted by
Kenneth Sloan-2 on
Jul 05, 2020; 9:32pm
URL: http://imagej.273.s1.nabble.com/Manual-choice-within-a-GenericDialog-tp5023615p5023622.html
yes - I have code that does similar things. I finally decided that the extra complexity in the code was not compensated by an appreciable improvement in the interaction.
Note that you can change the priority given to the two fields (Choice and String). As I described it, you can look at the String field *only* if the "Manual setting" choice is selected. But, you
can also check the String field first. If the user types something there, you can ignore the Choice field! I suspect you can insert some text to make this clear to the user - something like:
"Select one of these:
<Choice Field>
or, type in a value here:
<String Field> "
There's no need to force the user to make a particular *choice* in order to activate the "manual setting" *string* field.
--
Kenneth Sloan
[hidden email]
Vision is the art of seeing what is invisible to others.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html