BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
BB1364 Offline
Thumbs Must Hurt
 
Posts: 152
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Default removing Close menuitem from mainscreen - 09-04-2008, 10:16 AM

hi

I know that when we create menuitems in a Screen the default close menuitem doesnot come, but what i want is i need some features of mainscreen and also i want to remove the default "Close" and "Fullscreen" menuitem.

Does anyone how we can achieve this.. Any ideas links will be appreciated.

Thanks in advance
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
goulamass Offline
Talking BlackBerry Encyclopedia
 
Posts: 217
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Default 09-04-2008, 10:19 AM

Make your own Menu and add your menuItem to it instead of the default menu
   
Reply With Quote
  (#3 (permalink)) Old
BB1364 Offline
Thumbs Must Hurt
 
Posts: 152
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Default 09-04-2008, 10:29 AM

Thanks for your quick reply

i have overidden the makeMenu () and added my own menuitems in it. But when i click the menu button in the simulator it still shows the "close " menuitem. And when i click the trackwheel it shows the "FullMenu" menuitem. Some more ideas will be really helpfull
   
Reply With Quote
  (#4 (permalink)) Old
simon.hain Offline
CrackBerry Addict
 
Posts: 774
Join Date: Apr 2005
Location: hamburg, germany
Model: 8700
Carrier: o2
Default 09-04-2008, 10:35 AM

menu.deleteAll() should help.


java developer, Devinto, hamburg/germany
   
Reply With Quote
  (#5 (permalink)) Old
BB1364 Offline
Thumbs Must Hurt
 
Posts: 152
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Default 09-04-2008, 10:46 AM

Still not working. Here's what i hv done for the make Menu

<code>
protected void makeMenu(Menu menu , int instance) {
menu.deleteAll();
menu.add(details);
menu.add(refresh);
menu.add(MenuItem.separator(122));
menu.add(settings);
menu.add(MenuItem.separator(155));
//menu.addSeparator();
menu.add(exit);
super.makeMenu(menu,instance);
}

</code>

Any more ideas ...
   
Reply With Quote
  (#6 (permalink)) Old
ushernut Offline
New Member
 
Posts: 9
Join Date: Jan 2008
Model: 7100
PIN: N/A
Carrier: rogers
Default 09-04-2008, 11:48 AM

don't use super.makeMenu(menu,instance) in your code, just delete it.
because "close" menuitem belongs to the super menuitems.

I think you don't even need deleteAll() at the first line after you delete the super.makemenu().

Last edited by ushernut : 09-04-2008 at 11:49 AM.
   
Reply With Quote
  (#7 (permalink)) Old
BB1364 Offline
Thumbs Must Hurt
 
Posts: 152
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Default 09-05-2008, 01:10 AM

OOps! Still not able to remove the close and Fullmenu menuitem , it just sticks it even if i use deleteAll() and super,makeMenu().

Does anyone have any other ideas?

Thanks again.

Last edited by BB1364 : 09-05-2008 at 01:22 AM.
   
Reply With Quote
Reply


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1