[Gambas-user] Tracking mouse controls

Rob Kudla sourceforge-raindog2 at ...94...
Fri Mar 3 18:39:19 CET 2006


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




More information about the User mailing list