// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "controlwithitems.h"
#endif
#ifndef WX_PRECOMP
#include "wx/ctrlsub.h"
+ #include "wx/arrstr.h"
#endif
// ============================================================================
return s;
}
+wxArrayString wxItemContainer::GetStrings() const
+{
+ wxArrayString result ;
+ size_t count = GetCount() ;
+ for ( size_t n = 0 ; n < count ; n++ )
+ result.Add(GetString(n));
+ return result ;
+}
+
// ----------------------------------------------------------------------------
// appending items
// ----------------------------------------------------------------------------
}
}
+int wxItemContainer::Insert(const wxString& item, int pos, void *clientData)
+{
+ int n = DoInsert(item, pos);
+ if ( n != wxNOT_FOUND )
+ SetClientData(n, clientData);
+
+ return n;
+}
+
+int
+wxItemContainer::Insert(const wxString& item, int pos, wxClientData *clientData)
+{
+ int n = DoInsert(item, pos);
+ if ( n != wxNOT_FOUND )
+ SetClientObject(n, clientData);
+
+ return n;
+}
+
// ----------------------------------------------------------------------------
// client data
// ----------------------------------------------------------------------------