On 22 avr, 20:49, Kelo <[email protected]> wrote:
> Hi people,
>
>     I used mouseListeners.fireMouseMove(this,x,y) on onBrowserEvent
> (Event event) to fire this kind of event and modified x and y.
>
>     I would like to know how to set x and y when I firing an event on
> 1.6 :
>
>         addDomHandler(new MouseMoveHandler() {
>                                 public void onMouseMove(MouseMoveEvent event) 
> {
>                                           int x = <new value>;
>                                           int y = <new value>;
>                                           fireEvent(event); // how can I set 
> x and y to modify its
> original values ?
>                                 }
>
>                         },MouseMoveEvent.getType());
>
> I'll appreciate any help.

Have a look at com.google.gwt.dom.client.Document.createMouseMoveEvent
and com.google.gwt.event.client.DomEvent.fireNativeEvent, I believe
they'll be helpful.

But may I ask why (you think) you need such a coordinate transform?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to