// Purpose:
// Author: Robert Roebling
// Created: 01/02/97
-// Id: $Id$
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// global data
//-----------------------------------------------------------------------------
-extern WXDLLEXPORT_DATA(const wxChar) wxComboBoxNameStr[];
+extern WXDLLIMPEXP_DATA_CORE(const char) wxComboBoxNameStr[];
extern WXDLLIMPEXP_BASE const wxChar* wxEmptyString;
//-----------------------------------------------------------------------------
// 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; }