Hi
does anyone have an example using MouseMove, MouseLeft ?
The docs says its only supported for Image and ScrollCanvas.
I tried it with an Image object, but if I use notify="MouseMove", Hollywood says "Unknown notification "MouseMove"!
Is is not support under MorphOS RapaGUI?
MouseMove, MouseLeft
Re: MouseMove, MouseLeft
notify in RapaGui manual goes to XML attributes
EventHandler "gathers" them in generic "rapaGUI" event handler
try this example,
EventHandler "gathers" them in generic "rapaGUI" event handler
try this example,
Code: Select all
@REQUIRE "RapaGUI",{link=True}
CreateBrush(1,200,200,#RED)
Function p_EventFunc(msg)
Switch(msg.attribute)
Case "MouseMove"
moai.Set("result","text","Mouse X="..msg.x.." Mouse Y="..msg.y)
Case "MouseLeft"
moai.Set("result","text","MouseLeft")
EndSwitch
EndFunction
moai.CreateApp([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<window title="Image">
<vgroup>
<image id="image" brush="1" notify="mouseleft;mousemove"/>
<textentry id="result">text</textentry>
</vgroup>
</window>
</application>
]])
InstallEventHandler({RapaGUI = p_EventFunc})
Repeat
WaitEvent
Forever
Christos
Re: MouseMove, MouseLeft
@ plouf
Your example works on my SAM460 but not with Windows.
I get an error "unknown notification mouseleft" inline 5.
Maybe an oversite, not included in all versions of RapaGUI.
Cheers
Leo
Your example works on my SAM460 but not with Windows.
I get an error "unknown notification mouseleft" inline 5.
Maybe an oversite, not included in all versions of RapaGUI.
Cheers
Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Re: MouseMove, MouseLeft
I write it under windows !!!
Maybe your texteditor cut off ; (up comma?)
Maybe your texteditor cut off ; (up comma?)
Christos
Re: MouseMove, MouseLeft
@Plouf
Your right, I was using RapaGUI 2.1 did not notice the update to 2.2.
Cheers
Leo
Your right, I was using RapaGUI 2.1 did not notice the update to 2.2.
Cheers
Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Re: MouseMove, MouseLeft
Same here, didn't knew there is an update for RapaGUI!
Now with v2.2 this works!
Thanks!
Hmm, how about a Hollywood-Updater program to check, notify and install an update if there is something new?
Now with v2.2 this works!
Thanks!
Hmm, how about a Hollywood-Updater program to check, notify and install an update if there is something new?
- airsoftsoftwair
- Posts: 5830
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: MouseMove, MouseLeft
Make sure to subscribe to the newsletter to never miss an update again
Not as trivial as it looks, see here: viewtopic.php?p=21209#p21209
Re: MouseMove, MouseLeft
Is it a bug that a MouseMove object only triggers when the mouse is over an object but not if it leaves an object?
Would be good if I could get a notify if the mouse is not anymore over an MouseMove object, maybe only one time with TriggerValue 0?
Because I use this MouseMove notify to display some infos of an object while the mouse is over such an object.
But I would also clear the info-object when the mouse is not anymore over an MouseMove object.
Would be good if I could get a notify if the mouse is not anymore over an MouseMove object, maybe only one time with TriggerValue 0?
Because I use this MouseMove notify to display some infos of an object while the mouse is over such an object.
But I would also clear the info-object when the mouse is not anymore over an MouseMove object.
Re: MouseMove, MouseLeft
Maybe a good idea to trigger with mouseleave or something
In rhe mean time activate mousecapture
https://hollywood-mal.com/docs/html/rap ... eMove.html
Then you can check if event happens inside your object by comparing mousepos vs objectpos
In rhe mean time activate mousecapture
https://hollywood-mal.com/docs/html/rap ... eMove.html
Then you can check if event happens inside your object by comparing mousepos vs objectpos
Christos