[Gambas-user] Translation of mouse static method "Translate"

Gianluigi bagonergi at gmail.com
Sun Feb 2 18:23:59 CET 2020


I am having difficulty translating into Italian qt4 mouse static method
"Translate" (*)
I can't understand if for example this code:

Public Sub Form_MouseUp()

  Button1.Visible = True
  Mouse.Translate(100, 100)
  Button1.X = Mouse.X
  Button1.Y = Mouse.Y

End

It is the same as:

Public Sub Form_MouseUp()

  Button1.Visible = True
  Button1.X = Mouse.X + 100
  Button1.Y = Mouse.Y + 100

End

otherwise?

(*) http://gambaswiki.org/wiki/comp/gb.qt4/mouse

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200202/04635ebe/attachment.html>


More information about the User mailing list