#include "wx/textentry.h"
// Combobox item
-class WXDLLEXPORT wxComboBox : public wxChoice,
+class WXDLLIMPEXP_CORE wxComboBox : public wxChoice,
public wxTextEntry
{
public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr);
+ // See wxComboBoxBase discussion of IsEmpty().
+ bool IsListEmpty() const { return wxItemContainer::IsEmpty(); }
+ bool IsTextEmpty() const { return wxTextEntry::IsEmpty(); }
+
// resolve ambiguities among virtual functions inherited from both base
// classes
virtual void Clear();
WXWidget GetTopWidget() const { return m_mainWidget; }
WXWidget GetMainWidget() const { return m_mainWidget; }
+ //Copied from wxComboBoxBase because for wxMOTIF wxComboBox does not inherit from it.
+ virtual void Popup() { wxFAIL_MSG( wxT("Not implemented") ); }
+ virtual void Dismiss() { wxFAIL_MSG( wxT("Not implemented") ); }
+
protected:
virtual wxSize DoGetBestSize() const;
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);
+ // implement wxTextEntry pure virtual methods
+ virtual wxWindow *GetEditableWindow() { return this; }
virtual WXWidget GetTextWidget() const;
private: