[wxPython] Re: [PyCrust] Re: [pythoncard] wxSTC AutoCompSetIgnoreCase bug?

Patrick:

self.AutoCompSetIgnoreCase(1) doesn't seems to be working.
I set it to 1 (true), self.AutoCompGetIgnoreCase() returns 1,
but the auto-completion functionality is still case sensitive. Is
this a bug or am I missing something?

It works, in that I'm able to populate the list with the right stuff.
But IgnoreCase does not seem to work. If the AutoComp list
has both initial cap items and initial lowercase items and I type
in a lowercase letter after the list pops up, the uppercase items
are passed up in favor of the one starting with a lowercase letter.
I had assumed that IgnoreCase would allow me to type in all
lowercase letters and still match items in the list.

   I think we need to publish this on some more mailing lists :wink:

   This is a bug although it works OK (not quite right, but usable) on the
Windows version of Scintilla because the find function on Windows list boxes
is case insensitive. Looks like the GTK+ version does the wrong thing as
well as the wxWindows version. This is now fixed in Scintilla but I've only
tested on Windows and GTK+ as I don't build wxWindows/wxPython yet.

   To make this work, on Windows the listbox is no longer given the
automatic sort style. The comments in wxSTC imply that wxWindows list boxes
are always sorted. As we want to have two different sort orders (case
sensitive and case insensitive) this will need to be turned off there as
well. The list is constructed with the items in the right order now so there
is no need for sorting by the list box.

   Neil