wxComboBox

Hello,
    When I use the wxComboBox on my Solaris machine, if I highlight an item, but do not let go of the mouse button, EVT_COMBOBOX continously shoots off until I let go of the mouse button. EVT_TEXT only shoots off the first time an item is highlighted. I want a function to shoot off only when the user has highlighted an item and then let go of the mouse button to confirm the selection (like on Windows). I have wxPython2.4.1.2, does wxPython have the functionality I need in the new version, or is this the proper functionality for Unix?

Gilad

Gilad Suberri wrote:

Hello, When I use the wxComboBox on my Solaris machine, if I
highlight an item, but do not let go of the mouse button,
EVT_COMBOBOX continously shoots off until I let go of the mouse
button. EVT_TEXT only shoots off the first time an item is
highlighted. I want a function to shoot off only when the user has
highlighted an item and then let go of the mouse button to confirm
the selection (like on Windows). I have wxPython2.4.1.2, does
wxPython have the functionality I need in the new version, or is this
the proper functionality for Unix?

Different platforms can sometimes behave differently for things like this.

One way you could get what you want is to start a timer in the EVT_COMBOBOX handler, and then restart it each time that handler is called again. Then when they are done finally done selecting the timer will expire and you can do your thing in that handler.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Thanks. For anyone else who might run into this problem, wxChoice does not
do the same thing, so one might think of using that instead.

Gilad

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxPython-users@lists.wxwindows.org>
Sent: Wednesday, October 15, 2003 10:13 PM
Subject: Re: [wxPython-users] wxComboBox

Gilad Suberri wrote:
> Hello, When I use the wxComboBox on my Solaris machine, if I
> highlight an item, but do not let go of the mouse button,
> EVT_COMBOBOX continously shoots off until I let go of the mouse
> button. EVT_TEXT only shoots off the first time an item is
> highlighted. I want a function to shoot off only when the user has
> highlighted an item and then let go of the mouse button to confirm
> the selection (like on Windows). I have wxPython2.4.1.2, does
> wxPython have the functionality I need in the new version, or is this
> the proper functionality for Unix?

Different platforms can sometimes behave differently for things like this.

One way you could get what you want is to start a timer in the
EVT_COMBOBOX handler, and then restart it each time that handler is
called again. Then when they are done finally done selecting the timer
will expire and you can do your thing in that handler.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

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