// Modified by:
// Created: 22.10.99
// RCS-ID: $Id$
-// Copyright: (c) wxWindows team
+// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// 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
// ----------------------------------------------------------------------------
// this destructor is required for Darwin
}
+#if WXWIN_COMPATIBILITY_2_2
+
+int wxItemContainer::Number() const
+{
+ return GetCount();
+}
+
+#endif // WXWIN_COMPATIBILITY_2_2
+
#endif // wxUSE_CONTROLS