IE does not support canvas well. You may use wrapper libraries, which
dispatch output to canvas if possible, and for IE try to emulate it
with VML.

Here's blog posting about this:
http://lexaux.blogspot.com/2009/08/gwt-canvas-widget-drawing-in-browser.html

You can select among several libraries; make sure you create some
prototypes before making a decision.

I succeeded with GWT-Widgets canvas proof of concept widget.

On Sep 2, 10:39 am, Xlorep DarkHelm <ch...@darkhelm.org> wrote:
> Umm... for anyone trying to see what I mean, I broke the app last
> night, and I hope to have it running soon again this morning.
>
> On Sep 1, 1:45 pm, Xlorep DarkHelm <ch...@darkhelm.org> wrote:
>
> > Ok.... I'm hitting a roadblock here, and I'm hoping that it is just
> > something obvious that I'm unable to see.
>
> > My situation is this -- I'm working on a simple web app, using GWT and
> > the GWTCanvas widget from gwt-incubator.
>
> > With the canvas, I am trying to draw little black squares, which
> > represent values at a specific position in an array.
>
> > To me, it is pretty straight-forward, I have a method:
>
> > -----
>
> >         public void draw(int row, int col, int color) {
> >                 canvas.setFillStyle(Settings.colors[color]);
> >                 canvas.fillRect(col * Settings.PIXEL_SIZE, row *
> > Settings.PIXEL_SIZE, Settings.PIXEL_SIZE, Settings.PIXEL_SIZE);
> >         }
>
> > -----
>
> > in my class that wraps the canvas. On every major browser other than
> > IE (and I can only test with IE8... which might make a difference, I
> > dunno...), this works exactly as I'd expect.
>
> > In IE... it never draws anything. Like... at all. I see that my code
> > is running (I have some text which gets updated outside the canvas),
> > but IE isn't drawing, well... anything. This somewhat leaves my little
> > app as pretty useless for people who visit using IE.
>
> > Like I said... I'm hoping that it is something I'm just plain missing
> > here. The address to my app is:
>
> >http://showsort.appspot.com
>
> > I'm not really trying anything elaborate with the canvas in this...
> > just drawing some squares on it.
>
> > Any help would be most appreciated.
>
> > I can provide other code if it helps...
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to