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.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 93
Registered: ‎08-17-2009
My Device: Not Specified
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.

Developer
Posts: 93
Registered: ‎08-17-2009
My Device: Not Specified

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;
    }

 

 

New Contributor
Posts: 8
Registered: ‎02-18-2013
My Device: 8700,9300,8520,Blackberry Z10
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...