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