/////////////////////////////////////////////////////////////////////////////
-// Name: radiobox.cpp
+// Name: src/motif/radiobox.cpp
// Purpose: wxRadioBox
// Author: Julian Smart
// Modified by:
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "radiobox.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
XtSetArg (args[2], XmNadjustLast, False);
Widget radioBoxWidget =
- XmCreateRadioBox ((Widget)m_mainWidget, "radioBoxWidget", args, 3);
+ XmCreateRadioBox ((Widget)m_mainWidget, wxMOTIF_STR("radioBoxWidget"), args, 3);
m_radioButtons.reserve(n);
m_radioButtonLabels.reserve(n);
}
}
-int wxRadioBox::FindString(const wxString& s) const
-{
- int i;
- for (i = 0; i < m_noItems; i++)
- if (s == m_radioButtonLabels[i])
- return i;
- return wxNOT_FOUND;
-}
-
void wxRadioBox::SetSelection(int n)
{
if (!IsValid(n))
event.SetEventObject(item);
item->ProcessCommand (event);
}
-