[Gambas-user] Sudden loss of mouse data

Christof Thalhofer chrisml at deganius.de
Wed Aug 5 16:51:02 CEST 2020


Am 05.08.20 um 15:36 schrieb Charlie Ogier:

> Public Sub GridView1_Click()
> 
>    If Mouse.Left Then  'Crashes here
>      Print "Left"
>    Else
>      Print "No"
>    End If
> 
> End

As Benoît said, since 3.15 the 'Mouse' class is only avaiable in the
'Mouse*' event.

So use the 'MouseUp' event instead of '*_Click'.

Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200805/3b3cf596/attachment.sig>


More information about the User mailing list