1

I am working on adding a simple popUpScreen with a texual information when you hover over a CustomButton in BlackBerry. I have seen this already implemented in applications like Twitter, Facebbok and even in native BlackBerry pictures app and many other places.

To clarify, What i need is something like this -

a busy cat http://bit.ly/rh5gy7
[popupscreen as shown with a red circle]

But, I have not been able to create a PopUpScreen that is non-modal and non-ui-blocking. That is, even when the popupscreen is being shown, I should be able to move focus on the screen that called the popUpScreen.

Can anyone tell me, perhaps with some code, as to how you can implement this!

Thanks for your help!

ChethanRao
  • 191
  • 3
  • 9
  • The picture looks more like a toolbar, is this what you're after? http://docs.blackberry.com/en/developers/deliverables/18125/Toolbar_1247236_11.jsp – Ray Vahey Sep 14 '11 at 08:46
  • Hi Ray, Yes, the one in the picture is a toolbar. But I am more interested in getting that popUpScreen that reads "Show Search". Any ideas how to implement that? – ChethanRao Sep 14 '11 at 09:03
  • 2
    Aha, I get ya. That's a tooltip and in this case it's part of the toolbar class. On that link I gave you scroll down to where it says StringProvider("butn1") "butn1" is the text used in the tooltip – Ray Vahey Sep 14 '11 at 09:20
  • Hey Ray, that was really helpful. I haven't been looking at the 6.0 API reference as I usually target OS 4.5 and above. Have missed this completely. Thanks a lot. And also, if someone wants to implement this tooltip for OS below 6.0 ..here's a nice tutorial with sample code. http://www.naviina.eu/wp/blackberry/390/ – ChethanRao Sep 14 '11 at 09:55
  • If you have an answer to your question, even if you put it together yourself, you should post it as an answer and accept it so others will know this question has been resolved. – Richard Sep 14 '11 at 12:03
  • @ChethanRao You're welcome. In case you are interested the videos RIM put up are quite handy for quickly catching up on the UI stuff. http://supportforums.blackberry.com/t5/Java-Development/BlackBerry-6-User-Interface-APIs/ta-p/557303 – Ray Vahey Sep 14 '11 at 12:09

1 Answers1

1

The above can be achieved by making use of ToolBarManager and adding ToolbarButtonField into it and then setting a string as tooltip which will act as a popupscreen as shown in the above picture. ToolBarManager is available only in OS 6.0 and abob

If you intend to use this feature in older OS versions of BlackBerry, here's is a nice tutorial with sample resource.

Thank you Ray Vahey for your help!

Community
  • 1
  • 1
ChethanRao
  • 191
  • 3
  • 9