/////////////////////////////////////////////////////////////////////////////
-// Name: choice.cpp
+// Name: src/mac/carbon/choice.cpp
// Purpose: wxChoice
// Author: Stefan Csomor
// Modified by:
m_strings = wxArrayString(1) ; // autosort
}
#endif
-
+
for ( int i = 0; i < n; i++ )
{
Append(choices[i]);
#if wxUSE_STL
wxArrayString::iterator insertPoint;
size_t index;
-
+
if (GetWindowStyle() & wxCB_SORT)
{
insertPoint = std::lower_bound( m_strings.begin(), m_strings.end(), item );
return m_strings.GetCount() ;
}
-int wxChoice::FindString(const wxString& s) const
+int wxChoice::FindString(const wxString& s, bool bCase ) const
{
- return m_strings.Index( s , true , false) ;
+ return m_strings.Index( s , bCase ) ;
}
void wxChoice::SetString(int n, const wxString& s)
wxString wxChoice::GetString(int n) const
{
- wxCHECK_MSG( n >= 0 && (size_t)n < m_strings.GetCount(), _T(""),
+ wxCHECK_MSG( n >= 0 && (size_t)n < m_strings.GetCount(), wxEmptyString,
_T("wxChoice::GetString(): invalid index") );
return m_strings[n] ;