Hi,
On Thursday 08 October 2009 [email protected] wrote:
> My bad - used to Java, C# & Co. makes me forget about the this. prefix all
> the time. (Could have something to do with writing code at 03:00 am.)
> Oddly enough, however, there were no errors in the browser error console
> (FF 3.5).
No problem, but indeed all little odd here that Firefox is not showing up any
error.
> I try to make an app which shows a menu bar, and below it a desktop in
> which the actual happening takes place. Initially, until the user selects
> something to do, the space below the menu bar just shows some text with
> instructions for the user. The moment the user selects something useful,
> the text vanishes, and a rich interface for doing the selected job
> appears. A pretty straightforward and common application structure, IMO.
Sounds straightforward, yes. The described application is feasible using
"normal" container widgets to build up your UI. I guess you were a little bit
misleaded by the term "Desktop" in the classname. Anyway, I recommend to use
the available container widgets instead of the "Desktop" widget here.
> The removal happens in another method, and works properly once I added
> "this." everywhere where it is required.
Yepp, you have to get used to it :)
cheers,
Alex
> > > 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.
------------------------------------------------------------------------------
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