LeftIsDown() on wxEVT_LEFT_DOWN event?
Alex Bligh
alex at alex.org.uk
Tue Aug 15 07:40:14 PDT 2006
--On 15 August 2006 15:04 +0200 Vadim Zeitlin <vadim at wxwindows.org> wrote:
> In fact I don't think this is possible. The state of the mouse buttons
> can't change (well, it can, but the system won't notify us about it)
> before the mouse event is created. So for wxEVT_LEFT_DOWN event
> LeftIsDown() should always return true, please let me know if you can
> make it return false.
Why can't it change? The system doesn't need to "notify us". Seems
to me that on at least some architectures it's obtained using the
equivalent of wxGetMouseState(), i.e. a poll of the button state.
(That's from memory)...
Alex
More information about the wx-users
mailing list