Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 224
Registered: ‎03-29-2012
My Device: 9900
My Carrier: Wind

Overlap policy not working

Hello all, I am trying to set the overlap policy of some ImageViews to allow in order to allow overlapped nodes to receive touch events, however, it is not accepting this line:


overlapTouchPolicy: Policy.Allow


This was generated by  selecting the option in the QML properties sidebar in Momentics, I did not do this myself, however, it gives the error Can't find variable Policy. I believe this must be an error in the IDE as it inserted this code itself and should work properly. Has there been a change here or is it just that I have done something wrong? Thanks.

Posts: 499
Registered: ‎05-07-2012
My Device: developer
My Carrier: developer

Re: Overlap policy not working

[ Edited ]

Try overlapTouchPolicy: OverlapTouch.Allow


If that behaves properly, and if you created this code by selecting the option in Beta2, please create a bug report in Issue Tracker for the Momentics issue: follow the instructions in http://supportforums.blackberry.com/t5/Java-Development/Developer-Issue-Tracker/td-p/271768


Please make the issue public, include the thread URL and post the link to the bug.