Ralf Nieuwenhuijsen schrieb:
Thanx, it works :-) I've also noticed another bug. Concerning the
property centered of QxWindow. It I set it to true, it doesn't render
anything, instead I get a javascript error:
Error: window.application.getClientWindow() has no properties
Source-file: http://localhost/lps/qooxdoo/script/qooxdoo.js
Line 19
The client window should be there. Do you have your application in
window.application.main? The client window should be available for code
inside this method.
BTW: You can find this method inside QxPopup.js
However, when I set it _after_ it has been added in
window.application.main, it will work. Couldn't center just be the
default behaviour if no top, left, right and bottom were specified?
Maybe a nice behavior. But this influences the layout mechanics and
couldn't be implemented this easily I think.
PS. Which event is fired at this point? So I can fix this for now? I
don't like to set properties after I create the object.
Which event for what?
This is the code now, for all those who like a nice debugging window
to log the qooxdoo (and your own) debug messages:
var debugWindow = new QxWindow("QooxDoo Debugging Messages",
"icons/16/bell.png");
debugWindow.set({top: 100, left: 100, showClose: false, width: 400,
height: 200, minHeight: null, minWidth: null});
debugList = new QxList();
debugList.set({top: 0, left: 0, right: 0, bottom: 0, overflow: "scroll"});
debugWindow.add(debugList);
QxObject.prototype.debug = function(m, c) {
var clz = this.classname;
var hc = this._hashCode;
debugWindow.open();
setTimeout(function() {
debugList.add (new QxListItem (clz+"@"+hc+":" + m + " (" + c + ")"));
throw new Error(c+":"+clz+"@"+hc+":" + m);
}, 0);
};
Greetings,
Ralf
2006/4/10, Sebastian Werner <[EMAIL PROTECTED]>:
Ralf Nieuwenhuijsen schrieb:
Hi, i've been using this code to show up a debug window, for the
qooxdoo debug messages.
It works nicely, except the window resizes together with the list.. is
there a way around this? Or should I use another widget instead of
QxList? Ah, well for now, it will do just fine.
yourWindow.setMinHeight(null);
yourWindow.setMinWidth(null);
should help.
Sebastian
All one has to do is to add this line to your to put this above any of
your other code:
window.application.main = function()
{
this.add(debugWindow);
// the rest of your normal code
}
and to add this code at the top of your javascript code:
// QooxDoo Debugging Messages //
var debugWindow = new QxWindow("QooxDoo Debugging Messages",
"icons/16/bell.png");
debugWindow.setSpace(20, 400, 48, 250);
debugList = new QxList();
debugList.set({top: 0, bottom: 0, left: 0, right: 0, overflow: "scroll"});
debugWindow.add(debugList);
QxObject.prototype.debug = function(m, c) {
var clz = this.classname;
var hc = this._hashCode;
debugWindow.open();
debugWindow.setSpace(20, 400, 48, 250);
setTimeout(function() {
debugList.add (new QxListItem (clz+"@"+hc+":" + m + " (" + c +
")"));
}, 0);
};
Greetings,
Ralf
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel