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
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

How to create tab or set of icons component


Hi i want a set of icons that should be placed in the top of form(similar to multiple tabs),on clicking the icons it should go to respective pages.So i want an idea of creating it.

 

Icon tab sort of thing,So how can custom compoent can be created,Help me

 

 

 

Regards

Rakesh shankar.p

Developer
Posts: 16,644
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to create tab or set of icons component

use a horizontalfieldmanager and put the icons there. implement a fieldchangelistener for them. on fieldchanged you exchange the verticalfieldmanager below with the one you want to display.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to create tab or set of icons component

Agree with Simon, to help you layout your icons nicely, instead of a HorizontalFiedlmanager, you might consider a TablelayoutManager.

 

See here:

http://supportforums.blackberry.com/t5/BlackBerry-Developer-s-Blog/How-to-use-Table-View-layout/bc-p...

Contributor
Posts: 17
Registered: ‎04-17-2010
My Device: Curve 8350i
My Carrier: Nextel

Re: How to create tab or set of icons component

Weird, I try to check that url you posted and it tells me I don't have the proper rights to browse it.

 

Anything wrong?

 

Cheers,

 

Ernani

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: How to create tab or set of icons component

[ Edited ]

I couldn't view the link Peter posted up either so found an updated URL:

http://devblog.blackberry.com/2009/10/how-to-use-table-view-layout/

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Contributor
Posts: 17
Registered: ‎04-17-2010
My Device: Curve 8350i
My Carrier: Nextel

Re: How to create tab or set of icons component

Very weird my friend.

 

Anyways, thanks for the time to repost it, really appreciate it!

 

Cheers,

 

Ernani

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to create tab or set of icons component

FWIW, I can't view it now either.....