Hi Skar, the qx.ui.core.Blocker needs the widget to block as parameter.
Use this line of code and your example works: this.b = new qx.ui.core.Blocker(child_container); Cheers, Chris skar schrieb: > thron7 wrote: > >> >> You could use an image like this [1], on top of a semi-transparent >> blocker [2]. >> >> [1] >> http://demo.qooxdoo.org/devel/feedreader/resource/feedreader/images/loading66.gif >> [2] http://demo.qooxdoo.org/devel/apiviewer/index.html#qx.html.Blocker >> >> > Thanks for the tips. I got busy spinner working and the focus to shift > to the table on search complete. > I did this: > > >> var layout = new qx.ui.layout.VBox; >> var child_container = new qx.ui.container.Composite(); >> this.child_container = child_container; >> child_container.setLayout(layout); >> child_container.add(new qx.ui.basic.Label("sample label")); >> this.b = new qx.ui.core.Blocker(); >> this.b.setOpacity(0.8); >> this.b.setColor("red"); >> >> this.getRoot().add(child_container); >> var bt1 = new qx.ui.form.Button("Block"); >> var bt2 = new qx.ui.form.Button("Unblock"); >> child_container.add(bt1); >> this.getRoot().add(bt2,{top: 200, left: 200}); >> bt1.addListener("execute",function(e) { >> this.debug("Blocking child container ..."); >> this.b.block(child_container); >> },this); >> bt2.addListener("execute",function(e) { >> this.debug("Unblocking child container ..."); >> this.b.unblock(); >> },this); >> > But it's doing nothing if I click on the "block" button. > http://demo.qooxdoo.org/devel/demobrowser/#bom~Blocker.html has a > bom.Blocker, but I don't know how to use it to block my child_container. > Any ideas? > > cheers, > skar. > > -- Christian Schmidt Software Entwickler 1&1 Internet AG - Web Technologies Ernst-Frey-Straße 9 · DE-76135 Karlsruhe [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 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
