How detect Mouse wheel direction?

Post

Posted
Rating:
#1 (In Topic #1015)
Trainee
How detect Mouse wheel direction in this event?

Code (gambas)

  1. Public Sub *_MouseWheel()
  2.   ' ...
Online now: No Back to the top

Post

Posted
Rating:
#2
Regular
vuott is in the usergroup ‘Regular’
I point out this page of the wiki of Gambas Italian programmers forum:

https://www.gambas-it.org/wiki/index.php/Evento_rotellina

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Guru
cogier is in the usergroup ‘Guru’
Hi iiiypuk.me and welcome to the forum. Try the following code: -

Code (gambas)

  1. Public Sub Form_MouseWheel()
  2.  
  3.   If Mouse.Delta = 1 Then Print "Rolling forward"
  4.   If Mouse.Delta = -1 Then Print "Rolling backwards"
  5.  
  6.  
Online now: No Back to the top
1 guest and 0 members have just viewed this.