X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab9893576c877f5691023315c23c8348d9d6affd..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/ctrlsub.h diff --git a/interface/wx/ctrlsub.h b/interface/wx/ctrlsub.h index 33652cb461..728cba07d5 100644 --- a/interface/wx/ctrlsub.h +++ b/interface/wx/ctrlsub.h @@ -2,7 +2,6 @@ // Name: ctrlsub.h // Purpose: interface of wxControlWithItems // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -123,12 +122,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. */ @@ -511,6 +515,8 @@ public: Array of strings to insert. @param pos Position to insert the items before, zero based. + @return The return value is the index of the last inserted item. + If the insertion failed for some reason, -1 is returned. */ int Insert(const wxArrayString& items, unsigned int pos); @@ -527,6 +533,8 @@ public: @param clientData Array of client data pointers of the same size as @a items to associate with the new items. + @return The return value is the index of the last inserted item. + If the insertion failed for some reason, -1 is returned. */ int Insert(const wxArrayString& items, unsigned int pos, void **clientData); @@ -544,6 +552,8 @@ public: @param clientData Array of client data pointers of the same size as @a items to associate with the new items. + @return The return value is the index of the last inserted item. + If the insertion failed for some reason, -1 is returned. */ int Insert(const wxArrayString& items, unsigned int pos, wxClientData **clientData); @@ -560,6 +570,8 @@ public: Array of strings of size @a n. @param pos Position to insert the items before, zero based. + @return The return value is the index of the last inserted item. + If the insertion failed for some reason, -1 is returned. */ int Insert(unsigned int n, const wxString* items, unsigned int pos); @@ -579,6 +591,8 @@ public: @param clientData Array of client data pointers of size @a n to associate with the new items. + @return The return value is the index of the last inserted item. + If the insertion failed for some reason, -1 is returned. */ int Insert(unsigned int n, const wxString* items, unsigned int pos, @@ -599,6 +613,8 @@ public: @param clientData Array of client data pointers of size @a n to associate with the new items. + @return The return value is the index of the last inserted item. + If the insertion failed for some reason, -1 is returned. */ int Insert(unsigned int n, const wxString* items, unsigned int pos,