PUBLIC SUB PictureBox1_MouseWheel() IF Mouse.Forward THEN iDesign = iDesign + 1 IF iDesign > iNumImage THEN iDesign = 0 ELSE iDesign = iDesign - 1 IF iDesign < 0 THEN iDesign = iNumImage ENDIF $iCount = iDesign SetDesign(iDesign)END
PUBLIC SUB PictureBox1_MouseWheel() IF Mouse.delta > 0 THEN iDesign = iDesign + 1 IF iDesign > iNumImage THEN iDesign = 0 ELSE iDesign = iDesign - 1 IF iDesign < 0 THEN iDesign = iNumImage ENDIF $iCount = iDesign SetDesign(iDesign)END
' Gambas class filePUBLIC SUB form_mousewheel() Label1.text = CStr(Mouse.Delta) SELECT CASE Label1.text CASE 1 Label2.text = "On monte !" CASE -1 Label2.text = "On descend !" END SELECT IF Mouse.Forward THEN Label5.Text = "True" Label6.text = "on monte aussi !" ELSE Label5.Text = "False" Label6.text = "on descend aussi !" ENDIFENDPUBLIC SUB button1_click() ME.CloseEND