Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
FORM WINDOW - MouseWheel
USE the mouse wheel

mousedelta.png

To know if you up or down with your mouse wheel, use this function :
mouse.delta
Now, when you go up, you will have 1 value.
when you go down, you will have -1 value.

mousedelta2.png
Here the code of the example :

' gambas class File
PUBLIC SUB _new()
END
PUBLIC SUB form_OPEN()
me.center
END
PUBLIC SUB form_mousewheel()
label1.text = mouse.delta
select case label1.text
case 1
label2.text = "monter/up"
case -1
label2.text = "descENDre/down"
END select
END
PUBLIC SUB button1_click()
me.CLOSE
END

regards

Creation date : 13/10/2010 @ 08:22
Last update : 12/02/2012 @ 10:47
Category : FORM WINDOW
Page read 5622 times


Print the article Print the article


react.gifReactions to this article


Reaction #1 

by manu 16/10/2010 @ 17:20

et par exemple on peu s'en servir pour faire un zoom sur un WebView (fenetre de navigateur) de la facon suivante :

On incremente la valeur zoom du WebView1 a chaque evenement MouseWheel sur Webview

Public Sub WebView1_MouseWheel()

WebView1.Zoom = WebView1.Zoom + mouse.delta / 10

End

QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^