m_noItems = items.GetCount();
}
-int wxListBox::FindString(const wxString& s) const
+int wxDoFindStringInList(Widget w, const wxString& s)
{
wxXmString str( s );
int *positions = NULL;
int no_positions = 0;
- bool success = XmListGetMatchPos ((Widget) m_mainWidget, str(),
+ bool success = XmListGetMatchPos (w, str(),
&positions, &no_positions);
if (success)
return -1;
}
+int wxListBox::FindString(const wxString& s) const
+{
+ return wxDoFindStringInList( (Widget)m_mainWidget, s );
+}
+
void wxListBox::Clear()
{
if (m_noItems <= 0)
}
// Get single selection, for single choice list items
-int wxListBox::GetSelection() const
+int wxDoGetSelectionInList(Widget listBox)
{
- Widget listBox = (Widget) m_mainWidget;
int *posList = NULL;
int posCnt = 0;
bool flag = XmListGetSelectedPos (listBox, &posList, &posCnt);
return -1;
}
+int wxListBox::GetSelection() const
+{
+ return wxDoGetSelectionInList((Widget) m_mainWidget);
+}
+
// Find string for position
wxString wxListBox::GetString(int N) const
{