BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-22-2007, 07:24 AM   #1
kratos
New Member
 
Join Date: Aug 2006
Location: Seville
Model: 8700
Carrier: Vodafone
Posts: 1
Default Problem with double menu on Screen

Please Login to Remove!

I have a little problem .I’m developing an application that should run on several Blackberry devices such as 7290, 8700 ,8100 ,8300 ,etc …

I’ve an screen where there’re only ObjectChoiceFields and CheckboxFields.
When I use 7290 and 8700 and press the trackwheel ,the menu is displayed.But when I press the new trackball on 8300 and 8100 the menú is not displayed.When I press it,the ObjectChoiceFields are showed and the CheckboxFields are marked. So the menú is never displayed nowhere on the screen!If I press the menu button nothing happens.


I have tryed to use the KeyListener interface to capture the event of the menu button ( the one on the left on the ball ) and force the display:


class capture_track implements KeyListener{

public MainScreen myScreen;

public capture_track (){



}



public boolean keyDown(int keycode, int time){

if(keycode == 268566528){

myScreen.onMenu(0);

return(true);

}

return(false);

}

}


It works because now I can see the Menu by pressing the Menu button,but the problem is the following : in another screen of my application ( where there're only LabelFields for example ) when I press the trackball I see the menu (because I press the trackball when the focus is on a Label -> no problem ).
The problem comes when I press the trackball and then I press the menu button ,I get two menu on the screen at the same time!

I’ve tried to do :



public void makeMenu(Menu menu, int instance) {

if(instance != 0 and myScreen.getMenu(0) != null){

myScreen.getMenu(0).close();

}

}


But I get an “StackOverFlow” exception, so this is not the googd way.


Resume:

I can press the menu button and then the trackball button .That works good..But if I press the trackball first and then the menu button I get 2 menu at the same time on screen.

How can I solve this?

I really would appreciate some help with this.
Offline  
Old 05-22-2007, 07:26 AM   #2
penguin3107
BlackBerry God
 
penguin3107's Avatar
 
Join Date: Jan 2005
Model: iOS 5
Carrier: VZW
Posts: 11,701
Default

I would suggest posting this in the Developer's Forum.
http://www.blackberryforums.com/developer-forum/

Maybe a moderator will be kind enough to move the thread for you.
__________________
BCSA
BES 5.0.3 MR4 :-: Exchange 2007 SP3 RU3
http://port3101.org
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


OEM iPhone 11 PRO X/XR XS MAX 8/7 PLUS Fast Charging USB Cable 10 Feet & 6 Feet  picture

OEM iPhone 11 PRO X/XR XS MAX 8/7 PLUS Fast Charging USB Cable 10 Feet & 6 Feet

$2.99



10 Foot/3M iPhone 12/11 PRO MAX X/10 XR XS 8/7 FAST Charging USB LONG Cable cord picture

10 Foot/3M iPhone 12/11 PRO MAX X/10 XR XS 8/7 FAST Charging USB LONG Cable cord

$4.98



3M/10 feet Long Apple iPhone 13 12 11 Pro XS MAX XR X 8 Fast Charging Data Cable picture

3M/10 feet Long Apple iPhone 13 12 11 Pro XS MAX XR X 8 Fast Charging Data Cable

$3.50



New Apple White Charger Cradle Docking Station Base Stand A1381 OEM picture

New Apple White Charger Cradle Docking Station Base Stand A1381 OEM

$8.50



Lot of OEM APPLE iPAD LCD And White Front Glass Replacement 6091l-1402C picture

Lot of OEM APPLE iPAD LCD And White Front Glass Replacement 6091l-1402C

$17.99



Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$40.90







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