Hi Roman,
thank you for the explanation, now it works fine. The 5px height was
just for testing. But it is a strange error Message for missing
Layouts i think.
Thank you for your help.
Regards
Tom
Am 17.01.2009 um 00:33 schrieb Roman Schmid:
Hi Tom
I copied your code to test it locally.
Your container is lacking a valid layout.
This line:
var container = new qx.ui.container.Composite(box);
Should be something like:
var container = new qx.ui.container.Composite(new
qx.ui.layout.HBox());
However, the result is rather strange, because you set your textfields
to a height of 5 pixels which make them unusable. I would recommend
you
don't alter the height of them.
Since you're using a HBox Layout for the window and one for the
composite, you could skip the composite entirely. The resulting code
could look like this:
-- snip --
addContent : function()
{
var windowLayout = new qx.ui.layout.VBox(10);
this.setLayout(windowLayout);
this.setMinWidth(300);
var loginField = new qx.ui.form.TextField("Enter Login").set({width
: 260});
var passField = new qx.ui.form.TextField("Enter
Passw").set({width :
260});
this.add(loginField);
this.add(passField);
}
-- snap --
Regarding the re-build: You'll have to rebuild when you're adding new
classes. Just changing code (without new includes) won't require a
rebuild.
Cheers - Roman
Thomas Schober wrote:
Hi Roman,
no, i thought that i just have to do this once and for source and
once
for build to ditribute it. I tried it know with "generate source" and
with "generate source-all" but this gives the same result.
Regards,
Tom
Am 16.01.2009 um 23:01 schrieb Roman Schmid:
Hi Tom
At first sight, your code seems to be fine.
Did you re-build your source using generate.py ?
Cheers - Roman
Thomas Schober wrote:
Hi,
i created a class, which is inherited from a form.Window. The class
definition is defined that way:
*/
qx.Class.define("firstapp.ui.LoginBox",
{
extend : qx.ui.window.Window,
/*
*****************************************************************************
MEMBERS
*****************************************************************************
*/
construct : function(name,icon)
{
this.base(arguments,name,icon);
this.set
({
modal : true,
showMinimize : false,
showMaximize : false,
allowMaximize : false
});
this.addContent();
},
members :
{
/**
* This method contains the initial application code and gets
called
* during startup of the application
*/
addContent : function()
{
var windowLayout = new qx.ui.layout.VBox(10);
this.setLayout(windowLayout);
this.setMinWidth(300);
var container = new qx.ui.container.Composite(box);
container.setPadding(20);
var loginField = new qx.ui.form.TextField("Enter Login").set(
{height : 5, width : 260});
var passField = new qx.ui.form.TextField("Enter Passw").set(
{height : 5, width : 260});
container.add(loginField);
container.add(passField);
this.add(container);
}
}
});
Now in the Main funtion i try to instantiate the class like this :
*/
var loginWindow = new firstapp.ui.LoginBox("LoginWindow",null);
Every time i start the application i get an Error like :
Undefined value
in this line. Does anybody know what is wrong here ?
Thank you
Tom
------------------------------------------------------------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
<mailto:qooxdoo-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
<mailto:qooxdoo-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel