wxChoice::FindString()

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
Tyler
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 246
Joined: Fri Sep 03, 2004 12:37 am
Contact:

wxChoice::FindString()

Post by Tyler » Wed May 18, 2005 7:26 pm

Does anyone know why wxChoice::FindString() does not implement a case sensitive search? :-k

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Wed May 18, 2005 7:31 pm

Maybe because the lower logic of this is not permitting it? Anyway if you look at the class it derived from;

http://www.wxwidgets.org/manuals/2.6.0/ ... lwithitems

It does not support it on any of the controls except they overloaded the method. You can however simply iterate over all the strings and use IsSameAs() for your case insensitive search.

Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

Tyler
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 246
Joined: Fri Sep 03, 2004 12:37 am
Contact:

Post by Tyler » Wed May 18, 2005 7:44 pm

Perhaps. I'm saying it's counter-intuitive from a framework standpoint though because string and wxString are case sensitive for the equality operator, and this suggests a call to FindString() should also be case sensitive.

Post Reply