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
Developer
babakar
Posts: 770
Registered: ‎05-29-2012
My Device: see later

Submenu

SubMenu statusSubMenu = new SubMenu(null,""+GlobalValue.getReg262(), 300,3);
        statusSubMenu.add(account);

 

 statusSubMenu.add(subscription);
        
        MenuItem nope = statusSubMenu.getMenuItem();
        addMenuItem(nope);

 

 

when I do that, I get the menu at the bottom of my list.. but it always get selected first when  i open the menu

 

i want it to be the 5th in menu list, and be 5th priority.

 

submenu takes ordering and priority as last 2 params..but giving it 5 and 5, puts the submenu on top of the list.and selected first.

it is strange, when i do it 300 3 it gets last in list and selected first.

 

help