On 5/17/2005 Michael Moffitt <MMoffitt@advancedbionics.com> wrote:
> Is there a way I can set the step size used by widget buttons?
> In particular, the widget button used with 'xvalue' in an 'xpanel.'
You mean the increment size used by the "spinner" widget (button
with paired up & down arrows)?
Right click on the spinner arrows and select from the menu
that appears. I'm not sure if there is a way to do this by
program control.
The default behavior is add/subtract (as opposed to multiply/divide),
and the default increment depends on the smallest significant
digit of the initial value.
Examples:
<pre>initial value step size
0-9 1
3.141 0.001
90 10</pre>
Increment used by spinner
Re: Increment used by spinner
There is no way under program control to set the increment/decrement value for default field editors. That would require a new method to the ValueFieldEditor
class, see:
http://www.neuron.yale.edu/neuron/stati ... s/vfe.html
and/or yet another optional argument to
xvalue and xpvalue.
class, see:
http://www.neuron.yale.edu/neuron/stati ... s/vfe.html
and/or yet another optional argument to
xvalue and xpvalue.