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
trainee
Posts: 237
Registered: ‎05-07-2010
My Device: 8520
Accepted Solution

How to make a application menu at bottom?

hi

 

I just want to make a menu within application like blackberry inbuilt menu at the bottom.

but  if i scroll the screen the menu should remain static.(like iphone).

can anyone suggest me how i can do it?

thankx.

 

3181i79622962766ABA09

___________________________________________________
please press kudos(star button on left) if this post is helpful to you
"Accept as solution" if your query has been resolved.@hitendra
_________________________________________________
Please use plain text.
Developer
Ted_Hopp
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: How to make a application menu at bottom?

Create a Manager to hold your menu and then pass it to setStatus() for your MainScreen.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Please use plain text.
Developer
trainee
Posts: 237
Registered: ‎05-07-2010
My Device: 8520

Re: How to make a application menu at bottom?

can you give code snippet?

___________________________________________________
please press kudos(star button on left) if this post is helpful to you
"Accept as solution" if your query has been resolved.@hitendra
_________________________________________________
Please use plain text.
Developer
Ted_Hopp
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: How to make a application menu at bottom?

In your main screen's constructor:

 

Field[] menuItems = makeMenuItems();
HorizontalFieldManager menuBar = new HorizontalFieldManager(USE_ALL_WIDTH);
for (int i = 0; i < menuItems.length; ++i) {
  menuBar.add(menuItems[i[);
}
setStatus(menuBar);

Then write a function makeMenuItems() that returns an array of the fields (buttons or whatever) that you want to put in your menu bar.

 




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Please use plain text.