wxRadioBox

wxRadioBox

wxRadioBox
Functions for wxRadioBox class

A radio box item is used to select one of number of mutually exclusive choices. It is displayed as a vertical column or horizontal row of labelled buttons.

Styles

This class supports the following styles:

See: Overview events, wxRadioButton, wxCheckBox

This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler

wxWidgets docs: wxRadioBox

Event types emitted from this class: command_radiobox_selected

Destructor, destroying the radiobox item.

Types

Pos = {X :: integer(), Y :: integer()}
Size = {W :: integer(), H :: integer()}
Choices = [unicode:chardata()]
Option =
    {majorDim, integer()} |
    {style, integer()} |
    {val, wx:wx_object()}

Creates the radiobox for two-step construction.

See new/7 for further details.

Types

Returns the label of the item with the given index.

Return: The label of the item or an empty string if the position was invalid.

Types

Sets the selection to the given item.

Notice that a radio box always has selection, so n must be valid here and passing wxNOT_FOUND is not allowed.

Types

Item = integer()
Option = {show, boolean()}

Shows or hides individual buttons.

Return: true if the item has been shown or hidden or false if nothing was done because it already was in the requested state.

See: show/3

Types

Returns the number of columns in the radiobox.

Types

Pt = {X :: integer(), Y :: integer()}

Returns a radio box item under the point, a zero-based item index, or wxNOT_FOUND if no item is under the point.

Types

Returns true if the item is enabled or false if it was disabled using enable/3.

This function is currently only implemented in wxMSW, wxGTK, wxQT and wxUniversal and always returns true in the other ports.

Types

Returns true if the item is currently shown or false if it was hidden using show/3.

Note that this function returns true for an item which hadn't been hidden even if the entire radiobox is not currently shown.

This function is currently only implemented in wxMSW, wxGTK, wxQT and wxUniversal and always returns true in the other ports.