Tuesday, November 6, 2012

Re: Change the mouse pointer

This post has been made a long time ago, but I found a nice solution and I hope that this helps many guys with the same problem.

if (showWait)
RootPanel.get().getElement().getStyle().setCursor(Style.Cursor.WAIT);
else
RootPanel.get().getElement().getStyle().setCursor(Style.Cursor.AUTO);

This works perfectly for me.

All the best!


On Tuesday, April 15, 2008 7:16:27 AM UTC+1, caroline_europe wrote:
Hi all,
in my application, I need to change the mouse pointer dynamicaly, can
I do that with GWT ?

Example: when I click on the button [click_me], the cursor changes to
"new_cursor.gif".

Thanks!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FVAW2yJWIrYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment