Ok, I will do that
I will post again if I find a solution
Thank you
--~--~-~--~~~---~--~~
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-Web-Toolkit@googlegroups.com
with the entire class, maybe it can be of some
help to someone:
/**
* @author raulsan
*/
public class CompassCanvas extends GWTCanvas{
/**
* The label than indicates the angle
* of the compass
*/
private Label angleLab = new Label(0);
/**
* the size
But the thing is that it used to work perfectly with gwt-1.6.1 and
int x = Event.getRelativeX(event, this.getElement());
int y = Event.getRelativeY(event, this.getElement());
I don't understand why I can not override onBrowserEvent, I have also
overriden an addMouseListener
and I would not
com.google.gwt.user.client.ui.MouseListener;
import com.google.gwt.user.client.ui.MouseListenerCollection;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.widgetideas.graphics.client.Color;
import com.google.gwt.widgetideas.graphics.client.GWTCanvas;
/**
* @author raulsan
*
*/
@SuppressWarnings
Hi,
I used gwt 1.6.1 to implement an small aplication. And to get the
coordinates of the mouse on an event inside the widget I used:
int x = Event.getRelativeX(event, this.getElement());
int y = Event.getRelativeY(event, this.getElement());
but now I changed to 1.6.4, and I get an error. This