// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
return sel == wxNOT_FOUND ? wxString() : GetString(sel);
}
+void wxComboBox::SetValue(const wxString& value)
+{
+ if ( HasFlag(wxCB_READONLY) )
+ SetStringSelection( value ) ;
+ else
+ wxTextEntry::SetValue( value );
+}
+
void wxComboBox::SetString(unsigned int n, const wxString& s)
{
// Notice that we shouldn't delete and insert the item in this control