X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b59c98ddb8cec5eb07cfaac7adc7c0fabfca241f..491b5be8305968871bc289453ed088a70c3de044:/src/os2/radiobox.cpp diff --git a/src/os2/radiobox.cpp b/src/os2/radiobox.cpp index 0392b1c87f..cf31c122fb 100644 --- a/src/os2/radiobox.cpp +++ b/src/os2/radiobox.cpp @@ -51,6 +51,21 @@ static s_wndprocRadioBtn = NULL; // wxRadioBox // --------------------------------------------------------------------------- +int wxRadioBox::GetCount() const +{ + return m_noItems; +} + +int wxRadioBox::GetColumnCount() const +{ + return GetNumHor(); +} + +int wxRadioBox::GetRowCount() const +{ + return GetNumVer(); +} + int wxRadioBox::GetNumVer() const { if ( m_windowStyle & wxRA_SPECIFY_ROWS ) @@ -281,6 +296,14 @@ wxRadioBox::~wxRadioBox() } +void wxRadioBox::SetString(int item, const wxString& label) +{ + wxCHECK_RET( item >= 0 && item < m_noItems, wxT("invalid radiobox index") ); + + m_radioWidth[item] = m_radioHeight[item] = -1; + ::WinSetWindowText((HWND)m_radioButtons[item], label.c_str()); +} + wxString wxRadioBox::GetLabel(int item) const { wxCHECK_MSG( item >= 0 && item < m_noItems, wxT(""), wxT("invalid radiobox index") );