From: Vadim Zeitlin on 24 Jan 2010 06:19
On 2009-11-30, Christian Hackl <hacki(a)sbox.tugraz.at> wrote:
> As I take it, the recommended workaround for the fact that list
> selection events cannot be vetoed is to manually reset the selection to
> its previous state. However, when I try to do so, the event handler is
> called twice in the process.
I think you should try to filter the extra events in your own code by e.g.
ignoring any of them pertaining to the item you're already trying to return
> Is this a bug? Am I trying to do something horribly wrong? What can I
> do? Any hints appreciated.
There is probably a bug but I'd say that the wrong thing to do is to try
to emulate vetoing a selection event -- it's not possible for a good reason
and your users wouldn't expect it.
TT-Solutions: wxWidgets consultancy and technical support