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
New Developer
Posts: 78
Registered: ‎04-01-2009
My Device: Not Specified

Tooltip Handling in BB

Is there any way to develop tooltip in Blackberry? Can you guide me how to do? Can you pour the things on BB development?

 

 

Thanks in Advance,

Bala.

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

Re: Tooltip Handling in BB

you have to implement it yourself.

there are two approaches:
- use popupscreens
- directly draw on the graphics object of the mainscreen.

you can retrieve the coordinates of the focused field by calling getLeafFieldWithFocus() and getXYRect().
Use these coordinates to draw your tooltip..
Use OnFocus/OnUnFocus to start/cancel a timerTask that shows/removes the tooltip.

This is a bit of advanced mojo, but it works very good when you finally got it running.
----------------------------------------------------------
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: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Tooltip Handling in BB

Have you searched the forums? There are already some threads about this.