[Gambas-user] Ok, I'm stumped

Kadaitcha Man nospam.nospam.nospam at ...626...
Sat Nov 28 03:32:23 CET 2009


2009/11/28 Benoît Minisini <gambas at ...1...>:

> If you really need to know where is the mouse (but why?), you can use the
> Mouse.ScreenX and Mouse.ScreenY properties.

Meh. I'm a Windows developer of many years who's given up on M$ so I
have assumptions about GUI programming that are extremely hard to lose
:)

I have  two gridviews on two different forms. When the user right
clicks on one gridview row on the main form I want to pop the other
form and gridview right where they clicked.

> On X11, knowing where the mouse is may be expensive, when there is Internet
> between the mouse and the process receiving the events. So you get them when
> you have real mouse events only. Otherwise you must explicitely ask the X11
> server for them: that is done by the Mouse.ScreenX / Mouse.ScreenY properties.

I should be able to live with control-relative coordinates.




More information about the User mailing list