Hi Andreas,

it looks like the problem is caused by creating another class that 
extends application.Standalone apart from your main application class. 
"Test" should extend qx.core.Object. Of course then you can't use 
this.getRoot() from Test any more so you could just return the container 
and add it to the document in your main application class.

Also, calling this.base from Test.show seems unnecessary since 
application.Standalone doesn't have a show method that would be overwritten.


Regards,
Daniel

Andreas schrieb:
> Hi,
> 
> I'm using "qooxdoo 0.8.2 sdk" and calling in Application.js another 
> "Standalone"-class "Test".
> 
> -------------------------------------------
> qx.Class.define("test.Application",
> {
> extend : qx.application.Standalone,
> 
> members :
> {
>  main : function()
>  {
> 
>    // Call super class
>    this.base(arguments);
> 
>    var appli = new test.Test();
>    appli.show(arguments);
>  }
> }
> });
> -------------------------------------------
> 
> In this class "Test" I'm adding a SelectBox and TextArea with 
> this.getRoot().
> 
> -------------------------------------------
> qx.Class.define("test.Test", {
> extend : qx.application.Standalone,
> 
> members :
> {
>     show : function(arguments)
>  {             this.base(arguments);
> 
>      var container = new qx.ui.container.Composite(new 
> qx.ui.layout.VBox());
>      container.add(this.createBox1());
>      container.add(this.getTextArea());
>      this.getRoot().add(container, {edge:0});
> 
>  },
> 
>  createBox1 : function()
>  {
>    var container = new qx.ui.container.Composite(new qx.ui.layout.VBox(2));
>    container.add(new qx.ui.basic.Label("Simple"));
> 
>    this.selectBox = new qx.ui.form.SelectBox();
> 
>    this.selectBox.setWidth(100);
>    for (var i=0; i<30; i++)
>    {
>      var tempItem = new qx.ui.form.ListItem("Item " + (i+1));
>      this.selectBox.add(tempItem);
> 
>      // select sixth item
>      if (i == 5) {
>        this.selectBox.setSelected(tempItem);
>      }
>    }
> 
>    this.selectBox.addListener("changeValue", function(e) {
>      this.debug("ChangeValue: " + e.getData());
>    });
> 
>    this.selectBox.addListener("changeSelected", function(e) {
>      this.debug("ChangeSelected: " + e.getData());
>    });
>              var layout = new qx.ui.layout.Grid();
>       var box = new qx.ui.container.Composite(layout);
>       box.add(this.selectBox, {row: 0, column: 0});
> 
>       container.add(box);
> 
>       return container;
>  },
> 
>   getTextArea : function()
>  {
>        var container = new qx.ui.container.Composite( new 
> qx.ui.layout.VBox(20) ).set({
>               margin: 60
>        });
> 
>        this._textArea = new qx.ui.form.TextArea("Some text").set({
>              font: qx.bom.Font.fromString("30px sans-serif"),
>              padding: 6
>       });
> 
>       container.add(this._textArea, {flex: 1});
>       return container;
>  }
> }});
> -------------------------------------------
> 
> 
> The first problem is, that I can't choose an item in the SelectBox with 
> the mouse cursor.
> When I try this, then the SelectBox just closing, without selecting the 
> chosen item. I can only select items with keyboard.
> 
> Another problem is that when the SelectBox is spread, then the items are 
> shown behind the TextArea, that is placed some right under SelectBox. 
> And when I place SelectBox complete over the TextArea, then I can't see 
> the SelectBox-items when the Box is spread.
> 
> I think the bug with the mouse is already reported here: 
> http://bugzilla.qooxdoo.org/show_bug.cgi?id=2250 - but the problem with 
> the partly hidden SelectBox remains.
> 
> Is there any solution for this problem available?
> 
> Thanks,
> 
> Andreas
> 
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 


-- 
Daniel Wagner
Software-Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-6546
[email protected]

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. 
Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to