#include "wx/menu.h"
#include "wx/containr.h"
#include "wx/toplevel.h"
+ #include "wx/textctrl.h"
#endif
#include "wx/mac/uma.h"
const wxValidator& validator,
const wxString& name)
{
- return Create( parent, id, value, pos, size, 0, NULL,
- style, validator, name );
+ if ( !Create( parent, id, value, pos, size, 0, NULL,
+ style, validator, name ) )
+ return false;
+
+ Append(choices);
+
+ return true;
}
bool wxComboBox::Create(wxWindow *parent,
m_text->SetValue( value );
}
+void wxComboBox::WriteText(const wxString& text)
+{
+ m_text->WriteText(text);
+}
+
+void wxComboBox::GetSelection(long *from, long *to) const
+{
+ m_text->GetSelection(from, to);
+}
+
// Clipboard operations
void wxComboBox::Copy()