Event handling problem
Posted: Sun Jan 27, 2013 5:53 pm
Hi,
in HollyPaint I'm using a Hollywood object within a scrollgroup/virtgroup. To get mouse clicks in the Hollywood object I have added a traditional Hollywood button with event handlers. That doesn't work well anymore since HollyPaint has become a multi window application [1].
If I click a gadget in the toolbar window [2] and then click into the canvas window a MouseX call within the event handler returns sometimes a negative value. That causes crashes because some graphics functions can't deal with negative values. There is probably a conflict between MUI [3] and Hollywood event handler. Catching negative variables isn't an option because toolbar and canvas window can overlap.
Source code is here: https://sourceforge.net/p/hollypaint/co ... ree/trunk/
[1] http://www.mazze-online.de/hollypaint/hollypaint2.png
[2] in reality it's enough to activate the toolbar window
[3] it's Zune under AROS in case it matters
in HollyPaint I'm using a Hollywood object within a scrollgroup/virtgroup. To get mouse clicks in the Hollywood object I have added a traditional Hollywood button with event handlers. That doesn't work well anymore since HollyPaint has become a multi window application [1].
If I click a gadget in the toolbar window [2] and then click into the canvas window a MouseX call within the event handler returns sometimes a negative value. That causes crashes because some graphics functions can't deal with negative values. There is probably a conflict between MUI [3] and Hollywood event handler. Catching negative variables isn't an option because toolbar and canvas window can overlap.
Source code is here: https://sourceforge.net/p/hollypaint/co ... ree/trunk/
[1] http://www.mazze-online.de/hollypaint/hollypaint2.png
[2] in reality it's enough to activate the toolbar window
[3] it's Zune under AROS in case it matters