Contents Up Previous Next

wxRadioBox is-a wxItem

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.

wxRadioBox major-dimension
wxRadioBox values
wxRadioBox create
wxRadioBox get-selection
wxRadioBox set-selection


wxRadioBox major-dimension

long major-dimension

Specifies the number of rows (if style is wxVERTICAL) or columns (if style is wxHORIZONTAL) for a two-dimensional radiobox.


wxRadioBox values

multifield values

List of string values for initializing the wxRadioBox labels.


wxRadioBox create

void ( create)

Creates a radiobox item on the given panel or dialog box. The following slots may be initialized.

style may be a bit list of:

wxVERTICAL Lays the radiobox out in columns.
wxHORIZONTAL Lays the radiobox out in rows.


wxRadioBox get-selection

long ( get-selection)

Get the ID of the button currently selected.


wxRadioBox set-selection

bool ( set-selection long item)

Sets the given button to be the current selection.