How to arrange the MenuItems that we add in menu?

Well, it turns out it depends on OS level For instance, on OS 4.7 "Switch Application" is always in the bottom section near the "Close". However if you open any native BB app in OS 6 simulator, then you'll see RIM changed the this behaviour - "Switch Application" is always in the top section while they left "Close" in the bottom So basically your code is fully Ok as is and you don't need to change it. However if you do need to put any item above the "Switch Application", then you can do it by using the same top-most ordinal: new MyMenuItem("Above Switch Application", 0 /*ordinal*/, 0) Note despite in this case "Above Switch Application" IS above the "Switch Application", it shares the same ordinal group (0) so there will be no separator between the two (which I guess in not acceptable for the majority of the cases).

Well, it turns out it depends on OS level. For instance, on OS 4.7 "Switch Application" is always in the bottom section near the "Close". However if you open any native BB app in OS 6 simulator, then you'll see RIM changed the this behaviour - "Switch Application" is always in the top section while they left "Close" in the bottom.So basically your code is fully Ok as is and you don't need to change it.

However if you do need to put any item above the "Switch Application", then you can do it by using the same top-most ordinal: new MyMenuItem("Above Switch Application", 0 /*ordinal*/, 0); Note despite in this case "Above Switch Application" IS above the "Switch Application", it shares the same ordinal group (0) so there will be no separator between the two (which I guess in not acceptable for the majority of the cases).

MenuItem mi1 = new MenuItem("leave",0x00010004,0); The last argument in MenuItem is for Priority in the Menu. So don't pass it as 0. The priority of the menu item.

A lower value indicates a higher priority, conversely a higher value indicates a lower priority. Change the priority and try....

Now I gave priority as 6 to all the items. Still the output is same – Pramod Oct 16 at 7:08.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions