AdjustDropDownListSize();
}
-void wxComboBox::DoClear()
+void wxComboBox::Clear()
{
#ifdef LESSTIF_VERSION
XmListDeleteAllItems (GetXmList(this));
}
#endif
- wxControlWithItems::DoClear();
m_noStrings = 0;
AdjustDropDownListSize();
+
+ wxTextEntry::Clear();
}
void wxComboBox::SetSelection (int n)
m_inSetSelection = false;
}
-int wxComboBox::GetSelection (void) const
+int wxComboBox::GetSelection() const
{
return wxDoGetSelectionInList( GetXmList( this ) );
}
return wxDoFindStringInList( GetXmList( this ), s );
}
-void wxComboBox::SetEditable(bool WXUNUSED(editable))
-{
- // TODO
-}
-
void wxComboBoxCallback (Widget WXUNUSED(w), XtPointer clientData,
XmComboBoxCallbackStruct * cbs)
{
event.SetClientData( item->GetClientData(idx) );
event.SetExtraLong(true);
event.SetEventObject(item);
- item->GetEventHandler()->ProcessEvent(event);
+ item->HandleWindowEvent(event);
break;
}
case XmCR_VALUE_CHANGED:
event.SetString( item->GetValue() );
event.SetExtraLong(true);
event.SetEventObject(item);
- item->GetEventHandler()->ProcessEvent(event);
+ item->HandleWindowEvent(event);
break;
}
default: