ComboBox strange behavior?

Hi,

        I

have a readonly combobox which contains as element all characters from ASCII 27
to 256. I use it to select symbols from a specialized font. However, no matter
what I do, it seems to “uppercase” selections that I make. Here is
a transcript from the debug probe:

self.iconselector.combo_char.SetStringSelection(‘E’)

True

self.iconselector.combo_char.GetValue()

‘E’

self.iconselector.combo_char.SetStringSelection(‘e’)

True

self.iconselector.combo_char.GetValue()

‘E’

self.iconselector.combo_char.SetValue(‘e’)

self.iconselector.combo_char.GetValue()

‘E’

        Does

this make sense to anyone?

Christian

Josiah,

  Yep, it worked. I still am puzzled as to why this happened, but I
can move on from this glitch in my application!

  Thanks!

Christian

···

-----Original Message-----
From: Josiah Carlson [mailto:jcarlson@uci.edu]
Sent: Wednesday, March 21, 2007 1:36 AM
To: Christian Blouin; wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] ComboBox strange behavior?

"Christian Blouin" <cblouin@cs.dal.ca> wrote:

Hi,
            I have a readonly combobox which contains as element all
characters from ASCII 27 to 256. I use it to select symbols from a
specialized font. However, no matter what I do, it seems to "uppercase"
selections that I make. Here is a transcript from the debug probe:

[snip]

Have you considered setting the selection based on intex? Since you
know it is all plain ascii, you could use combo.SetSelection(ord(ch)-27)

- Josiah

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

I suspect it has to do with people being able to type in portions of a
string to have it selected, and the native control doing so without
regards to case (because people don't usually use the shift key when
trying to find matching entries in this way).

I wasn't able to find a flag to send to the control to tell it to be
case sensitive, which is why I offered the choice.SetSelection() option.

- Josiah

···

"Christian Blouin" <cblouin@cs.dal.ca> wrote:

Josiah,

  Yep, it worked. I still am puzzled as to why this happened, but I
can move on from this glitch in my application!

  Thanks!

Christian

-----Original Message-----
From: Josiah Carlson [mailto:jcarlson@uci.edu]
Sent: Wednesday, March 21, 2007 1:36 AM
To: Christian Blouin; wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] ComboBox strange behavior?

"Christian Blouin" <cblouin@cs.dal.ca> wrote:
> Hi,
> I have a readonly combobox which contains as element all
> characters from ASCII 27 to 256. I use it to select symbols from a
> specialized font. However, no matter what I do, it seems to "uppercase"
> selections that I make. Here is a transcript from the debug probe:
>
[snip]

Have you considered setting the selection based on index? Since you
know it is all plain ascii, you could use combo.SetSelection(ord(ch)-27)

- Josiah

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org