I'm developing a graphics application using Hollywood and RapaGUI on Windows 11. I have a Scrollcanvas widget and I need to handle mouse events for a selection/rubber-band feature.
In the Hollywood IDE (F5), everything works fine. In the compiled EXE, I get the following error at startup:
`Unknown notification "MouseLeft"! File: events.hws (current line: 606 - In function: Notify)`
My code after `moai.CreateApp()`:
Code: Select all
moai.Notify("canvas", "MouseLeft", True)
moai.Notify("canvas", "MouseMove", True)
moai.Notify("canvas", "MouseRight", True)Code: Select all
xml
<scrollcanvas id="canvas" notify="paint; mouseleft; mousemove; mouseright"/>I also tried `InstallEventHandler` with `OnMouseDown`/`OnMouseUp`/`OnMouseMove` — these are never called when RapaGUI is active. `MouseX()`/`MouseY()` return 0.
Questions:
1. Is there a known issue with `MouseLeft`/`MouseMove`/`MouseRight` on Scrollcanvas in compiled EXE on Windows?
2. Is there any working way to handle mouse drag/selection on a Scrollcanvas in a compiled Hollywood application on Windows?
Thank you.