Document wxItemContainer::SetStringSelection() as case-insensitive.
Add unit tests checking that the behaviour really corresponds to the documentation too. And also mention that it's not a good idea to have strings differing by case only in wxComboBox anyhow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -123,12 +123,17 @@ public:
|
||||
virtual int GetSelection() const = 0;
|
||||
|
||||
/**
|
||||
Selects the item with the specified string in the control. This doesn't
|
||||
cause any command events to be emitted.
|
||||
Selects the item with the specified string in the control.
|
||||
|
||||
This method doesn't cause any command events to be emitted.
|
||||
|
||||
Notice that this method is case-insensitive, i.e. the string is
|
||||
compared with all the elements of the control case-insensitively and
|
||||
the first matching entry is selected, even if it doesn't have exactly
|
||||
the same case as this string and there is an exact match afterwards.
|
||||
|
||||
@param string
|
||||
The string to select.
|
||||
|
||||
@return @true if the specified string has been selected, @false if it
|
||||
wasn't found in the control.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user