avoiding doubleclick events in custom control
Julien Pommier
julien.pommier at insa-toulouse.fr
Mon Feb 5 08:40:01 PST 2007
Quoting "Rooney, Mike \\(ext. 324\\)" <mxr at qvii.com>:
> >Thanks a lot for your detailed answer, I was still hoping that a simple
> solution
> >was available in wx "out of the box", but I'll go for your solution!
>
> I am not sure of your specific needs but why not as someone suggested just
> bind
> the double click event handler to the normal event handler? The first click
> of a double click is still treated as a single click, and then the second one
> would
> also be since it has the same event handler. Isn't this what you want?
>
Hi Mike,
I was about to answer that one "mouse up" event was lacking and I looked again
at my code, and realised that I was not listening to double click events (I
really thought I was!). You are right, and so was Vadim, I should have
double-checked my code before posting here /o\
Best regards,
Julien
More information about the wx-users
mailing list