OnWheelDown and OnWheelUp no work !

Discuss GUI programming with the RapaGUI plugin here
Post Reply
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

OnWheelDown and OnWheelUp no work !

Post by sinisrus »

Hello,

OnWheelDown and OnWheelUp no work with RapaGui on Windows 7 (Work on OS4 and WinUAE OS3.9)
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OnWheelDown and OnWheelUp no work !

Post by airsoftsoftwair »

MCVE please...
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: OnWheelDown and OnWheelUp no work !

Post by sinisrus »

Yes sorry !

Code: Select all

/* Nouveau projet Hollywood */

@REQUIRE "RapaGUI", {Link = True}

Function p_EventFunc(msg)
    Switch msg.action
    Case "RapaGUI":
        Switch msg.attribute
        Case "CloseRequest": End
        EndSwitch

    Case "OnWheelUp": moai.set("id_statusbar","text","UP")
    Case "OnWheelDown": moai.set("id_statusbar","text","DOWN")
    EndSwitch
EndFunction

InstallEventHandler({
RapaGUI     = p_EventFunc,
OnWheelUp   = p_EventFunc,
OnWheelDown = p_EventFunc,
})

; dynamically create MUI GUI from an external *.xml file definition
moai.CreateApp([[
<?xml version="1.0" encoding="UTF-8"?>
<application id="app">

  <window id="win_ChromaKey" title="AmiChromaKey :" notify="closerequest">
  <vgroup>
  <hollywood display="1"/>

  <statusbar>
  <item id="id_statusbar"></item>
  </statusbar>  

  </vgroup> 
  </window>

</application>
]])

EscapeQuit(True)

/* Boucle infinie */
Repeat
        WaitEvent
Forever
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OnWheelDown and OnWheelUp no work !

Post by airsoftsoftwair »

Oh, right, looks like mousewheel support isn't implemented at all on Windows/macOS/Linux. Only on Amiga. Will be fixed.
Post Reply