mouse position without event

Bill Baxter wbaxter at gmail.com
Fri Jul 13 01:28:06 PDT 2007


On 7/13/07, Tomasz Toczyski <tt at praterm.com.pl> wrote:
> How to get a current position of the mouse?
>
> If I have MouseEvent it isn't a problem - I can invoke GetX, GetY,
> GetPosition methods. But what to do if I dont't have a MouseEvent object?

Maybe wx has a better way, but the only way in many toolkits I've used
is to just remember what it was the last time you did have a
MouseEvent.

If you want to be able to tell what it is even when your app doesn't
have focus then you'll need something different.  Maybe
platform-specific tricks.

--bb




More information about the wx-users mailing list