> Gambas3 > > I have a GridView named gvOptions, and this code: > > Public Sub gvOptions_Menu() > > Debug Mouse.X > Debug Mouse.Y > > End > > 1) Both Mouse.X and Mouse.Y tell me "no mouse event data" > > I need to capture the mouse position to pop up a window. How do I do > that in g3? >
There is no mouse information for the Menu event. You can even raise this event without using the mouse, you know. If you really need to know where is the mouse (but why?), you can use the Mouse.ScreenX and Mouse.ScreenY properties. 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. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user