From: Pascal <pb...@oi...> - 2001-01-10 11:16:01
|
haven't been following it to closely, but I think this is what you need: function MyWidget(name,x,y,w,h,color) { ... <snip> ... this.DynLayer = DynLayer this.DynLayer(null,x,y,w,h,color); this.canvas = new DynLayer(null,10,10,this.getWidth()-20,this.getHeight()-20,'#c0c0c0'); this.addChild(this.canvas); return this; }; MyWidget.prototype=new DynLayer(); MyWidget.prototype.MyWidgetsetHTML=DynLayer.prototype.setHTML MyWidget.prototype.setHTML=function(html,noevt) { if (!this.created) this.MyWidgetsetHTML(html,noevt) else this.canvas.setHTML(html,noevt); }; MyWidget.prototype.MyWidgetgetHTML=DynLayer.prototype.getHTML MyWidget.prototype.getHTML=function(html,noevt) { if (!this.created) return this.MyWidgetgetHTML() else return this.canvas.getHTML(); }; Pascal Bestebroer (pb...@oi...) Software ontwikkelaar Oberon Informatiesystemen b.v. http://www.oibv.com |