Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread Kadaitcha Man
2009/11/28 Fabien Bodard : > so the answer is : > > private $MX as Integer > Private $MY as integer > > > Public sub gvOption_MouseDown >  $MX = mouse.x >  $MY=Mouse.Y > END > > Public sub gvOption_Menu() > > MyForm.Move($Mx, $My) > > END > > > Be carefull as Mouse.X is container relative... Ok, I

Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread Kadaitcha Man
2009/11/28 Benoît Minisini : > 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

Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread Benoît Minisini
> 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

Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread Fabien Bodard
so the answer is : private $MX as Integer Private $MY as integer Public sub gvOption_MouseDown $MX = mouse.x $MY=Mouse.Y END Public sub gvOption_Menu() MyForm.Move($Mx, $My) END Be carefull as Mouse.X is container relative... For a form in the whole screen ... use Mouse.ScreenX etc

Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread Charlie Reinl
Am Freitag, den 27.11.2009, 22:20 +1100 schrieb nospam.nospam.nos...@gmail.com: > Charlie Reinl wrote: > > Am Freitag, den 27.11.2009, 19:27 +1100 schrieb > > nospam.nospam.nos...@gmail.com: > >> Gambas3 > >> > >> I have a GridView named gvOptions, and this code: > >> > >> Public Sub gvOptions_Menu

Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread Charlie Reinl
Am Freitag, den 27.11.2009, 22:13 +1100 schrieb nospam.nospam.nos...@gmail.com: > Bad assumptions, Charlie. Bad assumptions. Salut nospam. Ok, you right , but not for the IDE part that's in gambas. /app/src/gambas -- Amicalement Charlie -

Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread nospam.nospam.nospam
Charlie Reinl wrote: > Am Freitag, den 27.11.2009, 19:27 +1100 schrieb > nospam.nospam.nos...@gmail.com: >> 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

Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread nospam.nospam.nospam
Charlie Reinl wrote: > Am Freitag, den 27.11.2009, 19:27 +1100 schrieb > nospam.nospam.nos...@gmail.com: >> 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

Re: [Gambas-user] Ok, I'm stumped

2009-11-27 Thread Charlie Reinl
Am Freitag, den 27.11.2009, 19:27 +1100 schrieb nospam.nospam.nos...@gmail.com: > 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

[Gambas-user] Ok, I'm stumped

2009-11-27 Thread nospam.nospam.nospam
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? 2) Where is the main body