BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 10-19-2010, 11:40 PM   #1 (permalink)
New Member
 
Join Date: Dec 2008
Model: 8130
PIN: N/A
Carrier: vodafone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default slide open/close disable menu bar

Please Login to Remove!

Hi
I am developing the application in which i am going to deploy on Blackberry 9800 device. In one of the screen i need to disable the menu bar. For that i used a Sensor to check whether the SLIDE_OPEN/SLIDE_CLOSE. If the slide is closed then i can able to disable all menus except show/hide keyboard options.

But if the slide is open, its showing EmptyMenu in the menu bar. i want to disable the Empty Menu option when the device is in slide open mode.

Sample code:
protected void makeMenu( Menu m, int ins )
{
if (Sensor.isSupported(Sensor.SLIDE))
{
int sliderState = Sensor.getState(Sensor.SLIDE);

switch (sliderState)
{
case Sensor.STATE_SLIDE_CLOSED:
m.deleteAll();
break;
case Sensor.STATE_SLIDE_OPEN:
??????
break;

}
}
}

Can anybody know how to do this?

Thanks
mindus
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

ATMEL AT24C256 DIP8 24C256 DIP-8 EEPROM
$0.99
ATMEL AT24C256 DIP8 24C256 DIP-8 EEPROM pictureATMEL AT24C128 2DB 24C128 SOP-8 SOP8 2-Wire Serial EEPROM
$4.22
ATMEL AT24C128 2DB 24C128 SOP-8 SOP8 2-Wire Serial EEPROM picture230-PCS IC 93C46B-I/P EEPROM 1KBIT 2MHZ 8-PIN PDIP MICROCHIP 93 93C46B-I/P 93C46
$47.55
230-PCS IC 93C46B-I/P EEPROM 1KBIT 2MHZ 8-PIN PDIP MICROCHIP 93 93C46B-I/P 93C46 picture74-PCS IC 24LC256-I/MS EEPROM 256KBIT 400KHZ MSOP MICROCHIP 24LC256 24LC256IMS
$35.94
74-PCS IC 24LC256-I/MS EEPROM 256KBIT 400KHZ MSOP MICROCHIP 24LC256 24LC256IMS picture301-PCS IC 93LC56A-I/SN EEPROM 2KBIT 2MHZ SOIC MICROCHIP 93L 93LC56A-I/SN 93LC56
$42.79
301-PCS IC 93LC56A-I/SN EEPROM 2KBIT 2MHZ SOIC MICROCHIP 93L 93LC56A-I/SN 93LC56 picture






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