SetValue is not adding a line if values does not exist
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -375,12 +375,10 @@ int wxComboBox::GetCount() const
|
|||||||
|
|
||||||
void wxComboBox::SetValue(const wxString& value)
|
void wxComboBox::SetValue(const wxString& value)
|
||||||
{
|
{
|
||||||
int s = FindString (value);
|
if ( HasFlag(wxCB_READONLY) )
|
||||||
if (s == wxNOT_FOUND && !HasFlag(wxCB_READONLY) )
|
SetStringSelection( value ) ;
|
||||||
{
|
else
|
||||||
m_choice->Append(value) ;
|
m_text->SetValue( value );
|
||||||
}
|
|
||||||
SetStringSelection( value ) ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clipboard operations
|
// Clipboard operations
|
||||||
|
Reference in New Issue
Block a user