Increment used by spinner

Using the graphical user interface to build and exercise models. Includes customizing the GUI by writing a little bit of hoc.
Post Reply
Site Admin
Posts: 5935
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Increment used by spinner

Post 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>
Site Admin
Posts: 1619
Joined: Wed May 18, 2005 3:32 pm

Re: Increment used by spinner

Post 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.
Post Reply