BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-24-2009, 04:59 AM   #1
holr
New Member
 
Join Date: Mar 2009
Model: 8900
PIN: N/A
Carrier: o2
Posts: 4
Default "menu" keeps appearing after popping a screen

Please Login to Remove!

Hi,
I am developing a small blackberry application that contains two "mainscreen" windows. After the user has selected some options in the first, a new ModalScreen is pushed to the stack and is displayed as so.

Code:
            
MyModalScreen _ms = new MyModalScreen();
getUiEngine().pushModalScreen(_ms);
//continue processing after modal is popped
So far so good.

However, after the user finishes with this ModalScreen (selects the "cancel" button), I remove it with a...
Code:
getUiEngine().popScreen(this);
...from within the code of the 2nd screen.

This then removes the ModalScreen, and the user is again presented with the first.

My problem is, after the 2nd screen is popped and the 1st screen appears, the "Menu" always, rather annoyingly, appears. I can get rid of it manually with the "back" button (resuming control to the 1st screen), but I'm sure there must be a better way around it than this?

Thanks for any help!

Last edited by holr; 06-24-2009 at 05:01 AM..
Offline  
Old 06-24-2009, 08:37 PM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Make sure you have the CONSUME_CLICK style on your button fields.
Offline  
Old 06-29-2009, 10:57 AM   #3
holr
New Member
 
Join Date: Mar 2009
Model: 8900
PIN: N/A
Carrier: o2
Posts: 4
Default

Hi Dougsg38p, thanks for your help! I managed to get my code working.

Coincidentally I have released the program on sourceforge as an open source app at (sorry for the silly url, the forum won't let me post the url because my post count is less than 10):

https colon slash slash sourceforge dot net slash projects slash bbvelcro


Basically, its a simple pkzip "unzipper" program. I was tired of having to pay for a full featured zip app when all I wanted to do was unzip a "zip" file. Note, it only works on zip's created with Windows OSes, as Linux and Mac have a different format which isn't compatible with Velcro. However, the src code is available to download so maybe someone else will figure that one out!

It can take ages to unzip a big file, so the blackberry indicator light flashes a rapid on/off red colour to let you know your zip has "unzipped"

Cheers,
holr
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM picture

Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM

$12.00



OEM IBM Selectric II Key Tops & Parts picture

OEM IBM Selectric II Key Tops & Parts

$49.95



New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks picture

New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks

$14.99



IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360 picture

IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360

$18.00



OEM  IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working picture

OEM IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working

$49.99



IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259 picture

IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259

$24.79







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.