Welcome!

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

Java Development

Reply
Contributor
tuyennguyencanada
Posts: 41
Registered: ‎07-28-2010
My Device: Not Specified
Accepted Solution

BlackBerry programming - Close popup screen with a tap

I have a popup screen (a small screen) stays on top of a main screen.

 

This popup screen has a button, the button will close the screen when clicked.
Do you know how to close this popup screen when users tapping on the phone, outside the area that the popup screen cover (without clicking the button)?

 

FYI: app is designed to run on touch phone only (BB Storm, BB Torch...)

Please use plain text.
Developer
StevenKader
Posts: 634
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: BlackBerry programming - Close popup screen with a tap

Just to be clear, you want the popup to close if the user touches anywhere on the screen?  Why not have them touch the button that closes the screen?


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Please use plain text.
Developer
Blanc
Posts: 638
Registered: ‎07-02-2009
My Device: Not Specified

Re: BlackBerry programming - Close popup screen with a tap

try to override public boolean touchEvent(TouchEvent event) in your popupscreen.

Thanks and Regards,
PraveenGoparaju.
Please use plain text.