Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
prabhu_mp_99
Posts: 93
Registered: ‎08-17-2009
Accepted Solution

Remove Full Menu?

Hello,

 

I have a listbox and when i click on any list item, it shows a menu called "Full menu". I don't want this menu to be displayed when clicking on any list items. How do i remove "Full menu" option popup?

 

Please suggest.

 

Thanks.

Please use plain text.
Developer
prabhu_mp_99
Posts: 93
Registered: ‎08-17-2009

Re: Remove Full Menu?

I resolved this issue by following code:

 

http://supportforums.blackberry.com/t5/Java-Development/How-can-I-disable-the-default-ContextMenu/m-...

 

 

 protected void makeMenu( Menu menu, int instance ) {
        //will show the default menu
     //   super.makeMenu(menu, instance);  
    }
     public boolean trackwheelClick( int status, int time ) 
    {
        return true;
    }        
    public boolean trackwheelUnclick( int status, int time ) 
    {
        return true;
    }
    public boolean trackwheelRoll(int amount, int status, int time) 
    {
        return true;
    }

 

 

Please use plain text.
New Contributor
nagumitti
Posts: 6
Registered: ‎02-18-2013
My Carrier: BB

Re: Remove Full Menu?

public boolean trackwheelClick(int status,int time)
{
Menu menuObj = new Menu();
makeMenu(menuObj,0);
menuObj.deleteItem(0);
menuObj.show();
return true;
};

menuObj.deleteItem(0); it will delete 0th position of menu item...

 

Please use plain text.