Welcome to qooxdoo! You are going to love the framework, and as you say "It IS easy to work with".
For your need, there are 2 ways to solve it. SInce you are using a VBox, you can set the visibility of one widget to "excluded" and the other to "visible". That might work well. If that doesn't do exactly what you need, then change the layout from VBox to Canvas and place the buttons exactly where you want them, with one button on top of the other one and only show one of them at a time. With the Canvas layout you can stack items at will. With the VBox layout, you don't need to worry about where to place widgets, the layout handles that. But by setting one item to "excluded", the layout manager should not make any space for it and you would get the illusion that there was only one widget in that location instead of two. Again, Welcome! Jim On Fri, May 7, 2010 at 7:32 AM, Stephan Hermann <[email protected]> wrote: > Hello people :) > > this will be my first mail to the qooxdoo ML and before I start to > questioning you, I want to say "Thank You" to you developers of Qooxdoo > (when you are working for 1&1 and you are living in Karlsruhe or > somewhere near, please get in touch with me to buy you a beer ;)) > > Now for the question: > > Is it possible to switch widgets during runtime inside a layout item? > > Let's assume this: > > var container=new qx.ui.container.Composite(new qx.ui.layout.VBox(5)); > var widget1=new qx.ui.form.SelectBox() > var widget2=new qx.ui.form.SelectBox() > var button1=new qx.ui.form.Button("Switch"); > container.add(widget1); > container.add(widget2); > container.add(button1); > widget1.show(); > widget2.hide(); > > button1.addListener("execute",function(e) { > widget1.hide(); > widget2.show(); > },this); > > > now, when you image the layout, it should look like this: > > +------------------+ > | widget1 (shown) | > | widget2 (hiding) | > | button1 (shown) | > +------------------+ > > The space widget2 occopies is lost space. What I want to do is to > "replace widget2 with widget1" so that only one item is shown during > runtime, at the same place as widget1. > > Sadly (could be that I'm too "stupid" to RTFM correctly), I didn't > found any hints on achieving this goal. > > So if this is not possible, ok, but if it is possible, can someone > point me to a document describing that. > > Anyways, after evaluating several Javascript "frameworks" I found > qooxdoo as the only one which makes RIA application really easy. > > Sproutcore looks promising, but it's far away from the potential of > Qooxdoo. > > When you want to know on what I'm working, you can find a video on > http://archive.ubuntu-server.eu/faimanager-faiconfig-defaultclasses-3.ogv > > (hint: I'm an ubuntu developer + sysadmin, but I'm not connected to > the commercial sponsor of Ubuntu named Canonical). > > This application is meant to be a frontend to FAI and Puppet and it > it's going to be opensource. > > Kind regards, > > \sh > > PS: You can find me normally on Freenode IRC, sadly in > #qoox...@freenode there is not much action ;) > > -- > > | Stephan '\sh' Hermann | OSS Dev / SysAdmin | > | JID: [email protected] | http://www.sourcecode.de/ | > | GPG ID: 0xC098EFA8 | http://leonov.tv/ | > | FP: 3D8B 5138 0852 DA7A B83F DCCB C189 E733 C098 EFA8 | > > > ------------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >
------------------------------------------------------------------------------
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
