git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45654
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxUniv:
- Fix wxTextCtrl::SetSelection(-1, -1) to behave as documented (Anders Larsen)
wxUniv:
- Fix wxTextCtrl::SetSelection(-1, -1) to behave as documented (Anders Larsen)
+- Fix wxComboBox::SetSelection(wxNOT_FOUND)
- Fix setting background colour for controls with transparent background
- Fix setting background colour for controls with transparent background
GetLBox()->SetSelection(n);
GetLBox()->SetSelection(n);
- SetText(GetLBox()->GetString(n));
+ wxString str;
+ if ( n != wxNOT_FOUND )
+ str = GetLBox()->GetString(n);
+
+ SetText(str);
}
int wxComboBox::GetSelection() const
}
int wxComboBox::GetSelection() const