Ron Dresser's spin edit control

Percentage generated by onchange event: 50%

Change any of the property values below(readonly toggles), then click outside box to see the change

Watch this space

Change any of the property values below(readonly toggles), then click outside box to see the change


Properties

Methods

Events

Name

Description

Default

Name

Description

Name

Description

idname of the object - required for onclick eventsRequired spinuponclick event handler for up button onchangeif assigned, fired when value changes
divid of the DIV tag in which the control will be placedid + 'div' spindnonclick event handler for down button onspinupif assigned, fired when up button clicked
readonlyif true text entry will not be allowedfalse spinchangeonchange event handler for text if not readonly onspindownif assigned, fired when down button clicked
minminimum value0 drawredraw the control
maxmaximum value100 showshow properties - if speditdiv exists then creates editable table
stepincrement1 normalizemakes sure values are consistent, then refreshes spin edit and show
STEPbig increment (if non-zero - hold ctrl key to use)5
valuecurrent value50
widthtext width in pixels (btn width if notext)50
heighttext font size in pixels18
alignalignment in text box or notextright
positionposition of buttonsright
colornormal bg color#FFFFFF
rocolorreadonly bg color#E0E0E0

Get SpinEdit