"step" / "sbStep"
Sets or reads the step increments for a spin button. Previously the property name "sbStep" was used.
Synopsis
setValue( string shape, "step", int value);
getValue( string shape, "step", int value);
shape.step( int value);
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
value | Step increment of a numerical spin button. |
Description
This attribute defines a new step increment for a spin button or returns the value.
Only integers can be used for the options of a spin button.
Example
The following example creates a spin button with a range from 100 to 200 in steps of 10.
main()
{
this.maximum=200;
setValue("", "minimum",100);
setValue("", "step",10);
}
Assignment
Spin button