How to superpose two GwtCanvas ?

Posted by Jeep314 on Stack Overflow See other posts from Stack Overflow or by Jeep314
Published on 2010-05-06T02:04:55Z Indexed on 2010/05/06 2:08 UTC
Read the original article Hit count: 426

Filed under:
|
|
|
|

Hi, I'm trying to superpose two GwtCanvas (which use an Html5 canvas). I am able to get this effect by using an absolute panel. But by doing this, I can't get my object to fill my panel. I would like to this so I can do a whiteboard in GWT. So far, I'm pretty advance but I would like to have multiple canvas overlay to support undo or preview. For example, if we draw a rectangle, it would be good to preview it as we move the mouse. I have found a javascript tutorial to do this : ex: http://dev.opera.com/articles/view/html5-canvas-painting/

There is a javascript example, but I'm not sure how to do the bridge between GWT and JavaScript. Any ideas ?

© Stack Overflow or respective owner

Related posts about gwt

Related posts about gxt