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
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
> 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
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
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
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
-
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
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
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
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
10 matches
Mail list logo