Runtime Listener and Widget Button

Im using Runtime:addEventListener(“touch”, foo)

And if you touch over top of a widget the listener does not fire… is there a way around this?

I tried to disable the widget with widgetBtn:setEnabled(false)… to no avail.

Anything else I can do to make foo fire when touching over top of a widget btn? 

Display objects set over top of the Global run-time when it comes to touchs.  widget.newButton consumes touch events in part of it’s functionality.  It’s not practical to pass those touches on.  After all, the button is there to be tapped on.  I would suggest not using widget.newButton() and build your own either with display.newText() or display.newImageRect().   Or maybe you could put a non-button display.newText/display.newImageRect under the widget.newButton that looks the same and then do a .isVisible = false on the button to hide it and show your fake button under it.

Rob

Or maybe you could put a non-button display.newText/display.newImageRect under the widget.newButton that looks the same and then do a .isVisible = false on the button to hide it and show your fake button under it.

I did that, works well. Thanks for the advice. 

Display objects set over top of the Global run-time when it comes to touchs.  widget.newButton consumes touch events in part of it’s functionality.  It’s not practical to pass those touches on.  After all, the button is there to be tapped on.  I would suggest not using widget.newButton() and build your own either with display.newText() or display.newImageRect().   Or maybe you could put a non-button display.newText/display.newImageRect under the widget.newButton that looks the same and then do a .isVisible = false on the button to hide it and show your fake button under it.

Rob

Or maybe you could put a non-button display.newText/display.newImageRect under the widget.newButton that looks the same and then do a .isVisible = false on the button to hide it and show your fake button under it.

I did that, works well. Thanks for the advice.