How to reset the tooltip while mouse moves over the same widget?

25 views
Skip to first unread message

membersound

unread,
Mar 5, 2013, 4:29:49 AM3/5/13
to google-we...@googlegroups.com
Hi,

I have a quite big Widget, and I want to show dynamic tooltips (.setTitle()) onto it whenever the mouse comes to rest.
Therefore registered MouseOverEvent, which works fine, but only one time! I have to leave the widget, and when I enter it again, the new tooltip is displayed.

BUT I want to tooltip to reappear when I move the mouse inside the widget. How could I do this? Do I have to reset something on MouseMoveEvent?

Thomas Broyer

unread,
Mar 5, 2013, 4:37:45 AM3/5/13
to google-we...@googlegroups.com
Unless you can set the title="" on more specific inner elements, you'll have to use "custom tooltips" (e.g. using PopupPanel) rather than setTitle().

Kody

unread,
Mar 5, 2013, 5:58:09 AM3/5/13
to google-we...@googlegroups.com
No, I want to apply the tooltips dynamically on a canvas (or its containing shapes). Thus canvas is already most inner.

Is it somehow possible to "retrigger" the hovering? I tried creating a simulated NativeEvent, but did not work. Am I missing something?
NativeEvent event = Document.get().createMouseOverEvent(-1, 915,528,915,422, false, false, false, false, NativeEvent.BUTTON_LEFT, canvas.getElement());
canvas.getElement().dispatch(event);


2013/3/5 Thomas Broyer <t.br...@gmail.com>
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/rW6zks_kuz4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages