Change Cursor Shape

56 views
Skip to first unread message

udayanga ranasinghe

unread,
Sep 11, 2010, 1:39:30 AM9/11/10
to Google Web Toolkit
Hi All,

Please tell me how to change the cursor shape in MouseMoveEvent event.

Thanks & Regards.
Udayanga.

lineman78

unread,
Sep 11, 2010, 3:04:53 AM9/11/10
to Google Web Toolkit
CSS attribute cursor.

http://www.w3schools.com/css/pr_class_cursor.asp

On Sep 10, 11:39 pm, udayanga ranasinghe <udayanga.u...@gmail.com>
wrote:

udayanga ranasinghe

unread,
Sep 11, 2010, 7:35:02 AM9/11/10
to google-we...@googlegroups.com
Thanks for replying.
Can u say how to apply this concept into GWT.
Specially in an event trigger.

Thanks again,
Udayanga.

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




--
Thanks and Regards,
Udayanga Ranasinghe
BCSc(Hons)
Senior Software Engineer | Wapice Lanka (Pvt) Ltd

Thomas Dvornik

unread,
Sep 11, 2010, 2:37:22 PM9/11/10
to Google Web Toolkit
Hey Udayanga,

Add a CSS class

.hover { cursor:wait }

Then inside the event handler, you want to set the widget's style.

widget.setStyleName("hover");

Hope that helps,

Tom

On Sep 11, 4:35 am, udayanga ranasinghe <udayanga.u...@gmail.com>
wrote:
> Thanks for replying.
> Can u say how to apply this concept into* GWT.*
> Specially in an event trigger.
>
> Thanks again,
> Udayanga.
>
>
>
>
>
> On Sat, Sep 11, 2010 at 12:34 PM, lineman78 <linema...@gmail.com> wrote:
> > CSS attribute cursor.
>
> >http://www.w3schools.com/css/pr_class_cursor.asp
>
> > On Sep 10, 11:39 pm, udayanga ranasinghe <udayanga.u...@gmail.com>
> > wrote:
> > > Hi All,
>
> > > Please tell me how to change the cursor shape in MouseMoveEvent event.
>
> > > Thanks & Regards.
> > > Udayanga.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .

udayanga ranasinghe

unread,
Sep 12, 2010, 6:03:57 AM9/12/10
to google-we...@googlegroups.com
Thanks it works
:D

To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Sorinel C

unread,
Sep 12, 2010, 9:02:02 AM9/12/10
to Google Web Toolkit
You register a handler for mouse event and then you do it like here:

http://ui-programming.blogspot.com/2010/01/gwt-how-to-show-wait-cursor-for-long.html

Cheers!
Reply all
Reply to author
Forward
0 new messages