BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 01-27-2011, 02:38 PM   #1 (permalink)
New Member
 
Join Date: Jan 2011
Model: 8900
PIN: N/A
Carrier: i dont know
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Onmenu function problem

Please Login to Remove!

Hello every one,

I want to discuss one thing if anyone have idea so please suggest me.
I have one problem in Action menu in my application.I am not able to set height of action menu by which my last menu item is not coming in full it coming half
I have use setorizon method but it is not helpful for me. I have used this code
public boolean onMenu(int instance)
{
if(menuflag){
Menu newMenu = this.getMenu(0);
Field f = getLeafFieldWithFocus();
if(f != null) {
ContextMenu cm = f.getContextMenu();
if(cm != null)
newMenu.add(cm, true);
}

makeMenu(newMenu, instance);
newMenu.setOrigin(-2, Display.getHeight()-10);
newMenu.addSeparator();
newMenu.show();
return super.onMenu(instance);
}else
{
return true;
}
//return true;

}

if anyone have idea so please suggest me
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

Similar Threads for: Onmenu function problem
Thread Thread Starter Forum Replies Last Post
Error Compiling Desktop USBSample robertmills Developer Forum 2 02-15-2010 02:35 PM
BB Alerts problem crucifixion Aftermarket Software 0 01-15-2008 01:57 PM
nXTL problem on 7520 CyBeRcR0W General BlackBerry Discussion 1 08-18-2006 08:23 PM
Fixing the No Ringer/Speaker Problem kaneguy General Legacy Device Discussion 0 08-16-2006 07:27 AM
BES problem or Exchange 2000 problem? Smits General BlackBerry Discussion 5 08-12-2006 11:21 AM





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