Hi all, I want to extend the Composite class with that code:
--snip-- qx.Class.define("qooxdoo_test.LeftScreen", { extend: qx.ui.container.Composite, construct : function() { this.debug("initializing left screen."); //add content areas this.add(this.__getLogo()); }, members : { __getLogo: function(){ this.debug("create logo in container --> " + this); var header = new qx.ui.container.Composite(new qx.ui.layout.HBox()); header.add(new qx.ui.basic.Image("qooxdoo_test/images/logo.png")); header.add(new qx.ui.core.Widget().set({backgroundColor: "#FFFFFF"}), { flex: 2 }); return header; } } }); --snip-- the debug results are: 001882 initializing left screen. 001883 create logo in container --> qooxdoo_test.LeftScreen[undefined] and I'm getting this error: this.$$parent.getContentElement() is null [Break on this error] this.$$parent.getContentElement().add(container); Do I have a mistake in my code or is it not allowed to add children to a composite in the constructor? Thanks in advance - Claus
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel