Hi, On Thursday 08 October 2009 [email protected] wrote: > I have created a desktop window with some text in it: > > var windowManager = new qx.ui.window.Manager(); > var desktop = new mc.ui.Desktop(windowManager); > var label = new qx.ui.basic.Label("Some text"); > label.setRich(true); > label.setFont(new qx.bom.Font(28, ["Verdana", "sans-serif"])); > desktop.add(label) > > Later on, I try to remove it: > > label.hide(); > label.exclude(); > label.destroy(); > > I also tried: > > desktop.remove(label); > > None of them seems to work. The text of the label stays on the desktop > until I refresh the page. Why? Is there a bug in the desktop widget? This sounds weird. The methods you stated above should work as expected. Does the removal of the widget takes place in the same method?
However may I ask the question what you like to achieve? If you only want to display a label at your application the "desktop" widget is the wrong choice. It acts as container for windows and normally is not used to show labels. Better use the root widget of your application or a container which holds the label as child widget. cheers, Alex ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
