Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

<radio-box>

Open abstract instantiable class

Summary

The class of radio boxes, or groups of mutually exclusive radio buttons.

Superclasses

<button-box> <action-gadget>

Init-keywords

None.

Library

duim-gadgets

Module

duim-gadgets

Description

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.

Figure 8.28 A progress bar

The value of the radio box is the value of the currently selected item in the radio box.

Operations

None.

Examples

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));

See also

<check-box>, page 537

<group-box>, page 595

<push-box>, page 626


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index