Added a StepButton to jostMlib

Super easy to attach a step button to any gui widget.

(
w=FlowView.new.flow{|w|
	b=NumberBox(w,40@27).value_(1);
	StepButton(w,20@27,target:b);
	w.startRow;

	c=EZSlider(w,300@27,"demo", [0,10,'linear',0.1]).value_(0);
	// gets the ControlSpec step automatically, if it is present ( and not zero)
	StepButton(w,27@20,target:c,horz:true);

}
)

2 Likes

Added some options: use equilateral triangles by default (looks nicer), allow for insetting icon.

Added convenience methods.

Tag 1.0.28

1 Like

Also added JMDrawIcon.
A class which works with or without wslib.

If you have wslib loaded, then the icons are simply added to DrawIcon’s drawFuncs.

See the help file.

Tag 1.1.3

3 Likes

Added some more icons. Tag 1.1.22.