Posted by
Joachim Wesner on
Oct 25, 2006; 2:52pm
URL: http://imagej.273.s1.nabble.com/Dialog-naming-restrictions-for-plugins-macros-tp3701208p3701210.html
Hi there,
some time ago, I asked how to work around the problem when using the macro
recorder with plugins
that have dialog entries that are not unique in the first nonblank part.
The answer was
------------------
To work with macros, the first word of each component label in a dialog
must be unique. If this is not the case, add underscores, which will be
converted to spaces when the dialog is displayed. For example, the
three labels
"Quality mode (Selection)"
"Quality measure (Selection)"
"Quality map (Selection)"
should be changed to
"Quality_mode (Selection)"
"Quality_measure (Selection)"
"Quality_map (Selection)"
------------------
However, it just appears to me, that this works with gd.addNumericField()
but not
with gd.addChoice(), in the latter case the "_" is not converted to a
space!?
E.g. using
gd.addChoice("Input_domain (0..2pi)", scaleOpts, scaleOpts[scaleOpt]);
gd.addNumericField("User_value", userPhase, 4);
gd.addChoice("Quality_processing:", procOpts, procOpts[procOpt]);
gd.addChoice("Quality_measure:", qualOpts, qualOpts[qualOpt]);
I get
Input_domain
User value
Quality_processing
Quality_measure
(I would prefer to have all "_" converted!)
Am I missing something here?
Joachim Wesner
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________