BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 06-01-2009, 07:29 AM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Model: 8800
PIN: N/A
Carrier: Software developer
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Appear context menus when displaying the screen

Please Login to Remove!

Hi,
I developed a simple blackberry application by extending MainScreen. There I have added few RadioButtonFields to a RadioButtonGroup. When I display this screen by clicking the trackball, a context menu appears as "Change Option". But if I clicked Enter it won't appear. I don't need to display this menu when the screen is displayed. Could any one help me to resolve this? I'm using BlackBerry JDE 4.2.1.
Offline  
Old 06-01-2009, 10:01 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

if I understand your problem, you want 'Enter' to work just like 'trackwheel click' ? If so, you will want to define a class that extends screen and implement your own keyChar method to do something like


Code:
protected boolean keyChar(char character, int status, int time)
{
switch(character):
{
case 'Characters.ENTER': 
//makeMenu or makeContextMenu
break;
}
}
Offline  
Old 06-01-2009, 11:57 PM   #3 (permalink)
New Member
 
Join Date: Apr 2009
Model: 8800
PIN: N/A
Carrier: Software developer
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi bemshaswing,

Thanks for the reply. My problem was when I click a Button Field from trackball to display the screen having radiobuttons, "Change Option" menu also appear with the screen. However I managed to solve this problem by adding,

ButtonField.CONSUME_CLICK

property to the Style of the Button Field.

Thanks again for your answer

-Kelum-

Last edited by kelumkps : 06-02-2009 at 12:01 AM.
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

ENI 1140L 1100 Watt RF Power Amplifier 9kHz-250kHz 50db
$7485.0
ENI 1140L 1100 Watt RF Power Amplifier 9kHz-250kHz  50db pictureENI A150 150 Watt RF Power Amplifier, 300kHz-35MHz, 150W
$4285.0
ENI A150 150 Watt RF Power Amplifier, 300kHz-35MHz, 150W pictureFanuc Servo Amplifier A06B-6089-H209 FULLY REFURBISHED EXCHANGE ONLY
$1250.0
Fanuc Servo Amplifier A06B-6089-H209 FULLY REFURBISHED EXCHANGE ONLY pictureComtech ARD8829-50, ARD Series, 50 Watts Power Amplifier, 800-2000MHz, 50W
$4285.0
Comtech ARD8829-50, ARD Series, 50 Watts Power Amplifier, 800-2000MHz, 50W pictureEdsal MB301 Heavy Duty One Piece Welded Mobile Service Bench with 1 Drawer and 1
$1029.78
Edsal MB301 Heavy Duty One Piece Welded Mobile Service Bench with 1 Drawer and 1 picture






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