WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr;
// Combobox item
-class WXDLLEXPORT wxComboBox: public wxComboBoxBase , public wxControl
+class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase
{
DECLARE_DYNAMIC_CLASS(wxComboBox)
{
Create(parent, id, value, pos, size, n, choices, style, validator, name);
}
+ inline wxComboBox(wxWindow *parent, wxWindowID id,
+ const wxString& value,
+ const wxPoint& pos,
+ const wxSize& size,
+ const wxArrayString& choices,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxComboBoxNameStr)
+ {
+ Create(parent, id, value, pos, size, choices, style, validator, name);
+ }
bool Create(wxWindow *parent, wxWindowID id,
const wxString& value = wxEmptyString,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr);
+ bool Create(wxWindow *parent, wxWindowID id,
+ const wxString& value,
+ const wxPoint& pos,
+ const wxSize& size,
+ const wxArrayString& choices,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxComboBoxNameStr);
// List functions
virtual void Delete(int n);
virtual int GetCount() const { return m_choice->GetCount() ; }
void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ) ;
+ wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
+
protected:
virtual int DoAppend(const wxString& item) ;
virtual int DoInsert(const wxString& item, int pos) ;
virtual void DoSetItemClientObject(int n, wxClientData* clientData) ;
virtual wxClientData* DoGetItemClientObject(int n) const ;
+ void FreeData();
+
// the subcontrols
wxTextCtrl* m_text;
wxChoice* m_choice;