[Gambas-user] Tracking mouse controls

Benoit Minisini gambas at ...1...
Sat Mar 4 01:27:57 CET 2006


On Friday 03 March 2006 18:39, Rob Kudla wrote:
> On Fri March 3 2006 11:51, GuruLounge - MailLists wrote:
> > I was wondering if it was possible to track mouse events
> > outside of a form.
>
> Qt makes the global mouse position available as QCursor::pos, but
> Gambas' gb.qt component doesn't expose this functionality.  Qt
> will also let you grab the mouse pointer to trap all its events
> anywhere on the screen, but again, gb.qt doesn't have
> corresponding methods.
>
> Maybe a static "Mouse.GlobalX" and "Mouse.GlobalY" set of
> properties would be good for this, but as far as I know the
> Mouse class is only available when you're in a Mouse event.
>
> Rob
>

Try Mouse.ScreenX and Mouse.ScreenY :-)

Regards,

-- 
Benoit Minisini





More information about the User mailing list