When creating a range gadget, you must specify the range of values over which the gadget-value of the gadget can vary, using the gadget-value-range slot. An instance of type <range> must be passed to this slot. You can initialize this value when creating a value range gadget using the value-range: init-keyword. The default range for any value range gadget is the set of integers from 0 to 100.
When first created, the value of a range gadget is the minimum value of the gadget-value-range of the gadget, unless value: is specified. As with all other gadgets, use gadget-value to return or set this value, as shown in Figure 7.20, which illustrates this behavior for a scroll bar.
|