Saturday, July 6, 2013
#12143: Click anywhere inside wxListBox generates wxEVT_COMMAND_LISTBOX_SELECTED event
Hi all,
This is a rather unexpected behaviour for wxListBox. Clicking anywhere inside wxListBox without intending to select an item generates selected event. Calling 'GetSelection()' inside the event handler function returns 0 or first item selected even though the control is only having focus and no item have been selected yet. This behaviour is seen in Windows, I wonder how it behaves on other platforms.
I would have expected this event to fire only when a new item is selected. Why is this so?
Case System:
Window Vista Ultimate SP2
wxWidgets v2.8.11
-Sanje2v
- Full Post
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment