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

Native Development

Reply
Contributor
ajochems
Posts: 33
Registered: ‎01-12-2011
My Device: Torch

Show label on ActionBar?

I am developing a game with cascades and use a navigation pane to show different screens. I would like to show the points that a user has on the right side of the back button on the ActionBar. I found that i can only place ActionItem objects on the ActionBar and i could create an item with enabled is false but then it always shows a default icon above the title. Can i somehow suppress that icon or place a Label instead of an ActionItem on the ActionBar?

Please use plain text.
Developer
dridk
Posts: 91
Registered: ‎09-25-2012
My Device: bb10 alpha
My Carrier: free

Re: Show label on ActionBar?

So, you want replace the logo by the score ? ... Hum.. Then, you have to generate an Image with the score printed. This can be done from C++, I guess . use QPixmap::drawText() and create a bb:Image from it. 

 

a lover of Qt
Please use plain text.