git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19352
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxComboBox::SetValue(const wxString& value)
{
- SetStringSelection( value ) ;
+ int s = FindString (value);
+ if (s == wxNOT_FOUND && !HasFlag(wxCB_READONLY) )
+ {
+ m_choice->Append(value) ;
+ }
+ SetStringSelection( value ) ;
}
// Clipboard operations
void wxComboBox::SetValue(const wxString& value)
{
- SetStringSelection( value ) ;
+ int s = FindString (value);
+ if (s == wxNOT_FOUND && !HasFlag(wxCB_READONLY) )
+ {
+ m_choice->Append(value) ;
+ }
+ SetStringSelection( value ) ;
}
// Clipboard operations