Open abstract instantiable class
The class of radio boxes, or groups of mutually exclusive radio buttons.
None.
duim-gadgets
duim-gadgets
The instantiable class that implements an abstract radio box, that is, a gadget that constrains a number of toggle buttons, only one of which may be selected at any one time.
|
The value of the radio box is the value of the currently selected item in the radio box.
contain(make(<radio-box>, items: #("Yes", "No"),
orientation: #"vertical");The following example defines a label-key function which formats the label of each item in the radio box, rather than just using the item itself.
*radio-box* := contain
(make(<radio-box>,
items: #(1, 2, 3, 4, 5),
orientation: #"vertical",
label-key:
method (item)
format-to-string("---%d---",
item) end)); <check-box>, page 537
<push-box>, page 626