A radiobox item is a matrix of strings with associated radio buttons. The buttons are mutually exclusive, so pressing one will deselect the current selection.
radio-box-create
radio-box-get-selection
radio-box-set-selection
long ( radio-box-create long panel-id string callback string label
long x long y long width long height
multivalue strings long major-dimension optional string style optional string name)
Creates a radiobox item on the given panel. The callback may be the empty string ("'') to denote no callback, or a word or string for the function name. The function will be called when an item in the radiobox is selected, with the radiobox ID as argument. If no position is given, the panel item is placed after the last item. The value -1 may be passed to denote a default, so that the position may be left unspecified and the size given.
strings should be a multifield of strings.
major-dimension specifies the number of rows (if style is wxVERTICAL) or columns (if style is wxHORIZONTAL) for a two-dimensional radiobox.
style specifies a bit list of styles.
wxVERTICAL | Lays the radiobox out in columns. |
wxHORIZONTAL | Lays the radiobox out in rows. |
name gives the radiobox a name that can be retrieved with window-get-name.
long ( radio-box-get-selection long radio-box-id)
Get the ID of the button currently selected.
long ( radio-box-set-selection long radio-box-id long item)
Sets the given button to be the current selection.