Made sorting case-insensitive (to match wxComboBox) and fixed sorting in general for combo box classes inheriting from wxOwnerDrawnComboBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -504,7 +504,7 @@ int wxVListBoxComboPopup::Append(const wxString& item)
|
||||
|
||||
for ( i=0; i<strings.GetCount(); i++ )
|
||||
{
|
||||
if ( item.Cmp(strings.Item(i)) < 0 )
|
||||
if ( item.CmpNoCase(strings.Item(i)) < 0 )
|
||||
{
|
||||
pos = (int)i;
|
||||
break;
|
||||
@@ -1039,7 +1039,7 @@ int wxOwnerDrawnComboBox::DoInsertItems(const wxArrayStringsAdapter& items,
|
||||
|
||||
for ( unsigned int i = 0; i < count; ++i )
|
||||
{
|
||||
int n = GetVListBoxComboPopup()->Append(items[i]);
|
||||
n = GetVListBoxComboPopup()->Append(items[i]);
|
||||
AssignNewItemClientData(n, clientData, i, type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user