#pragma implementation "choice.h"
#endif
-#ifdef VMS
+#ifdef __VMS
#define XtDisplay XTDISPLAY
#define XtParent XTPARENT
#endif
-// For compilers that support precompilation, includes "wx.h".
+#include "wx/defs.h"
+
#include "wx/choice.h"
#include "wx/utils.h"
}
}
-void wxChoice::Append(const wxString& item)
+int wxChoice::DoAppend(const wxString& item)
{
Widget w = XtVaCreateManagedWidget (wxStripMenuCodes(item),
#if USE_GADGETS
m_clientList.Insert( m_clientList.Item(m_noStrings-1),
(wxObject*) NULL );
m_noStrings ++;
+
+ return Number() - 1;
}
void wxChoice::Delete(int WXUNUSED(n))
return Number();
}
+/*
int wxChoice::DoAppend(const wxString& item)
{
Append(item);
return GetCount() - 1;
}
+*/
// Just appends, doesn't yet insert
void wxChoice::DoInsertItems(const wxArrayString& items, int WXUNUSED(pos))