BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-27-2009, 04:10 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Posts: 52
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Hide and Show Menu Items

Please Login to Remove!

Hi,

Does anybody know how to hide/show (similar to setVisible(boolean b) method) menu items in the menu?

i tried removing them for hiding, then adding them back for showing. But my problem is, how would i know that the menu item already exists in the menu?
Offline  
Old 03-27-2009, 07:15 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

I assume that you are overriding makeMenu() in your Screen class?

If so, you makeMenu() is called each and every time the menu key is pressed, so there is no reason to hide menu items. Simply do not add a particular menu item if it is not appropriate for the screen context at the time makeMenu is called.
Offline  
Closed Thread


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

MSA 10165446 MULTIGAS DETECTOR, ALTAIR 5X, CONFIGURE Kit
$2799.99
MSA 10165446 MULTIGAS DETECTOR, ALTAIR 5X, CONFIGURE Kit pictureMSA ALTAIR Gas Detecto
$99.99
MSA ALTAIR Gas Detecto pictureMSA Galaxy GX2 Automated Calibration Station for MSA Altair 4x
$2000.0
MSA Galaxy GX2 Automated Calibration Station for MSA Altair 4x pictureMSA ALTAIR 4XR Multigas Detector # 10178557-LEL,O2,CO,H2S- N.I.B
$695.0
MSA ALTAIR 4XR Multigas Detector # 10178557-LEL,O2,CO,H2S- N.I.B pictureMSA AltaiR 4X / 5X Xcell Oxygen O2 10106729 Sensor N.I.B.
$200.0
MSA AltaiR 4X / 5X Xcell  Oxygen O2 10106729 Sensor N.I.B.  picture






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