I would take a look at the demo source:

http://google-web-toolkit-incubator.googlecode.com/svn/trunk/src/com/google/gwt/demos/gwtcanvas/client/

or

http://code.google.com/p/google-web-toolkit-incubator/source/browse/#svn/trunk/src/com/google/gwt/demos/gwtcanvas/client%3Fstate%3Dclosed

On Dec 7, 8:06 am, Jeff Schwartz <[email protected]> wrote:
> IE v8 does not support Canvas natively, though there are some plugins I
> think that give it Canvas-like abilities. You will have to wait for IE v9
> which has decent HTML 5 support.
>
>
>
>
>
>
>
>
>
> On Tue, Dec 7, 2010 at 9:13 AM, StrongSteve <[email protected]> wrote:
> > Hello Everybody,
>
> > Currently I am trying to use the GWTCanvas from gwt-incubator-2.1.0
> > (together with gwt2.1).
> > All I want to do right now is a simple proof on concept by drawing two
> > rectangles.
> > Does not sound very fancy, but even this simple task fails in IE8.
>
> > I started by creating a new GWT project using the Eclipse Plugin (The
> > HelloWorldService template).
>
> > Then I placed basic GWTCanvas code into the onLoad method.
>
> > <code>
> >        /**
> >         * This is the entry point method.
> >         */
> >        public void onModuleLoad() {
>
> >                GWTCanvas canvas = new GWTCanvas(640, 480);
>
> >                canvas.setLineWidth(3);
> >                canvas.setStrokeStyle(Color.RED);
>
> >                canvas.strokeRect(30, 30, 100, 100);
>
> >                canvas.strokeRect(60, 50, 200, 200);
>
> >                RootPanel.get("mainArea").add(canvas);
>
> >        }
> > </code>
>
> > Works perfectly in FF > 3.5, Chrome but shows an empty page in IE8.
> > Compatibility mode in IE7 show one rectangle, but only one. Changing
> > from HTML Standard to Quirks mode did not have any effect.
>
> > Am I doing something obvious wrong?
> > I have found no information stating that the GWTCanvas does not work
> > with IE8.
> > Moreover the provided sample [1] from google incubator work perfectly
> > even in IE8.
> > What are the guys doing differently? ;)
>
> > Thanks in Advance for both your time and your knowledge!
>
> > Greetings
> > Stefan
>
> > [1]
> >http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/GWT...
>
> > --
> > 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]<google-web-toolkit%2Bunsubs 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> *Jeff Schwartz*

-- 
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