DECLARE_DYNAMIC_CLASS(wxComboBox)
public:
- wxComboBox() ;
virtual ~wxComboBox();
// forward these functions to all subcontrols
virtual void DelegateTextChanged( const wxString& value );
virtual void DelegateChoice( const wxString& value );
- inline wxComboBox(wxWindow *parent, wxWindowID id,
+ wxComboBox() { Init(); }
+
+ wxComboBox(wxWindow *parent, wxWindowID id,
const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr)
{
- Create(parent, id, value, pos, size, n, choices, style, validator, name);
+ Init();
+ Create(parent, id, value, pos, size, n, choices, style, validator, name);
}
- inline wxComboBox(wxWindow *parent, wxWindowID id,
+
+ wxComboBox(wxWindow *parent, wxWindowID id,
const wxString& value,
const wxPoint& pos,
const wxSize& size,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr)
{
- Create(parent, id, value, pos, size, choices, style, validator, name);
+ Init();
+ Create(parent, id, value, pos, size, choices, style, validator, name);
}
bool Create(wxWindow *parent, wxWindowID id,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr);
+
bool Create(wxWindow *parent, wxWindowID id,
const wxString& value,
const wxPoint& pos,
virtual wxSize DoGetBestSize() const;
virtual void DoMoveWindow(int x, int y, int width, int height);
+ // common part of all ctors
+ void Init();
+
virtual int DoAppend(const wxString& item) ;
virtual int DoInsert(const wxString& item, int pos) ;