// wxComboBox
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase
+class WXDLLIMPEXP_CORE wxComboBox :
+ public wxWindowWithItems<wxControl, wxComboBoxBase>
{
public:
inline wxComboBox() {}
virtual void SetSelection(int n);
virtual void SetString(unsigned int n, const wxString &text);
- wxString GetValue() const;
+ wxString GetValue() const { return DoGetValue(); }
void SetValue(const wxString& value);
void WriteText(const wxString& value);
bool IsOwnGtkWindow( GdkWindow *window );
void DoApplyWidgetStyle(GtkRcStyle *style);
- wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
-
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
virtual wxSize DoGetBestSize() const;
+ // implement wxTextEntry pure virtual methods
+ virtual wxString DoGetValue() const;
+ virtual wxWindow *GetEditableWindow() { return this; }
+
// Widgets that use the style->base colour for the BG colour should
// override this and return true.
virtual bool UseGTKStyleBase() const { return true; }