StepButton:
Filter:
Classes (extension) | GUI > Views | Libraries > jostMlib

StepButton
ExtensionExtension

Increment/decrement arrows for stepping.
Location: NOT INSTALLED!

Description

Increment/decrement arrows for stepping values. Simply attach it to any View which has value and valueAction using "target", or use a custom Action for the stepper. A customizeable meta key increases the step. Gets the ControlSpec step automatically, if it is present ( and not zero).

Class Methods

.new

Arguments:

parent
bounds
target

The target View (must accept value and valueAction);

incrColor
decrColor
horz

default: true for horizontal arrows

eq

default: true use equilateral triangles

inset

inset the icon by a Point(x,y)

.newHorz

convenience method for horz=true

.newFillBounds

convenience method for eq=false

.newHorzFillBounds

convenience method for horz=true, eq=false

.defaultIncrColor

.defaultDecrColor

Inherited class methods

Instance Methods

.target

the targeted input view. The target View (must accept value and valueAction);

.step

default 1

.bigStep

default 5

.gap

default 0.5. The gap between the arrows.

.customAction

a custom action instead of calling valueAction on the target.

.modifier

default 524288. Set the modifier for the bigStep

Inherited instance methods

Examples