Page 1 of 1

Increment used by spinner

Posted: Thu May 19, 2005 9:29 am
by ted
On 5/17/2005 Michael Moffitt <> 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.

<pre>initial value step size
0-9 1
3.141 0.001
90 10</pre>

Re: Increment used by spinner

Posted: Thu May 19, 2005 1:18 pm
by hines
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: ... s/vfe.html
and/or yet another optional argument to
xvalue and xpvalue.