Hi, as i've said in previous threads, i'm new to qx, so sorry if i'm
reporting problems that are of obvious solution.
I'm trying to create a custom qx.ui.core.Widget that contain a
qx.ui.table.Table. Following the tutorials & docs, i use
_createChildControlImpl method to create table in widget, but i've
noticed that the table when created this way loose some styling/icons.
The code to reproduce the problem is here (a widget need to be
defined, so i'm not able to use Playground to demostrate it):
-----------------------------------------------------------------------------------------------------------------------------
qx.Class.define("trackr.Application", {
extend : qx.application.Standalone,
members : {
main : function() {
this.base(arguments);
this.getRoot().add(new trackr.view.SearchTaskWidget(),
{ edge : 0 });
}
}
});
qx.Class.define("trackr.view.SearchTaskWidget", {
extend: qx.ui.core.Widget,
construct: function () {
this.base(arguments);
this._setLayout(new qx.ui.layout.Dock());
this._add(new qx.ui.table.Table(), { edge : "north" });
this._createChildControl("table");
},
members: {
// overridden
_createChildControlImpl : function(id) {
var control;
switch (id) {
case "table":
control = new qx.ui.table.Table();
this._add(control, { edge : "center" });
break;
}
return control || this.base(arguments, id);
}
}
});
-----------------------------------------------------------------------------------------------------------------------------
As you can see, the grid created directly in Widget constructor has
the icon on the tol right corner, wile the table created in
_createChildControlImpl don't.
Im using Qx 1.5
Gian Marco Gherardi
http://gianmarco.gherardi.me
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel