git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74175
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual unsigned int GetCount() const;
+ virtual void SetValue(const wxString& value);
// these methods are provided by wxTextEntry for the native impl.
#if wxOSX_USE_CARBON
// Text field functions
- virtual void SetValue(const wxString& value);
virtual wxString GetValue() const;
virtual void WriteText(const wxString& text);
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