Class int_item defines a specilised version of class text_item for editing integer values. The refinement defines the following additional behaviour:
->length
The widfth of the field is automatically adjusted to fit all integers in
the defined range
->increment’s
or int_item->decrement’s
the text_item<-selection
and executes dialog_item<-message.
If the mouse-button is held down, the increment/decrement repeats. The
upper and lower bounds of the int_item->range
are honoured.
See also class text_item,
class slider, and int_item->initialise.
increment and
decrement are used for repeating.
->range.|int], message=[code]*, low=[int],
high=[int]->initialise,
followed by int_item->range:
low, high.<-type
and text_item->length
to ensure the item is wide enough to hold all values in the indicated
range. The default low value is pce<-min_integer,
the default high is pce<-max_integer.->typed.
If the result is not an integer, or not within int_item->range
a warning is raised and the value is reset to the value before calling
this method.