That is what I came up with too, just based on a quick look at the
TerraTooltipSkin code.
Although it sets up a mouse listener on the Display, I don't think of that
as being a problem.

You may well be right about there being a better way to achieve this though.

The only issues I saw were
- Configuring the Display used for the tooltip so that it doesn't accept
focus.
That way, the primary Pivot window will continue to have focus.
- Disabling the fade transition (but I never have them enabled anyway!)

Screenshot attached if you are interested.
(Uses most of the files in here
http://svn.apache.org/repos/asf/pivot/trunk/examples/src/org/apache/pivot/examples/tooltips/
)

Chris

On 4 February 2011 19:03, lello <[email protected]> wrote:

>
> I tried a quick hack, but it didn't work as it should.
> The problem I found is that you have to add mouseListeners to the display
> or
> the tooltip won't close,
> when you move out of the tooltip. But I don't really know the internal API
> of Pivot, and there might be a better solution.
>
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/tooltip-not-in-main-window-tp2396170p2423576.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>

<<attachment: ExternalTooltip.jpg>>

Reply via email to