+ wxChar* copy = new wxChar[wxStrlen(s) + 1];
+ return wxStrcpy(copy, s);
+}
+
+// TODO auto-sorting is not supported by the code
+int wxChoice::DoInsertItems(const wxArrayStringsAdapter& items,
+ unsigned int pos,
+ void **clientData, wxClientDataType type)
+{
+#ifndef XmNpositionIndex
+ wxCHECK_MSG( pos == GetCount(), -1, wxT("insert not implemented"));
+#endif
+
+ const unsigned int numItems = items.GetCount();
+ AllocClientData(numItems);
+ for( unsigned int i = 0; i < numItems; ++i, ++pos )
+ {
+ Widget w = XtVaCreateManagedWidget (GetLabelText(items[i]),