Public Sub *_MouseWheel()
' ...
End
How detect Mouse wheel direction?
-
- Posts: 1
- Joined: Thursday 6th April 2023 9:56am
How detect Mouse wheel direction?
How detect Mouse wheel direction in this event?
Re: How detect Mouse wheel direction?
I point out this page of the wiki of Gambas Italian programmers forum:
https://www.gambas-it.org/wiki/index.ph ... _rotellina
https://www.gambas-it.org/wiki/index.ph ... _rotellina
Europaeus sum !
Amare memorentes atque deflentes ad mortem silenter labimur.
Amare memorentes atque deflentes ad mortem silenter labimur.
- cogier
- Site Admin
- Posts: 1125
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: How detect Mouse wheel direction?
Hi iiiypuk.me and welcome to the forum. Try the following code: -
Public Sub Form_MouseWheel()
If Mouse.Delta = 1 Then Print "Rolling forward"
If Mouse.Delta = -1 Then Print "Rolling backwards"
End