Hello,
with this.setCaption(x) it works perfectly well. I don't need to call
qx.ui.core.Widget.flushGlobalQueues().
Thank you for your help!
Greetz,
Oliver Koch
On Fri, Jan 05, 2007 at 05:41:43PM +0100, Andreas Ecker wrote:
> Howdy!
>
> Alex Back wrote:
> > Hello Oliver,
> >
> > use the methods "this.setCaption('x')" for setting and
> > "this.getCaption()" for getting the caption of your window.
> >
> > This should work.
> >
> > cheers,
> > Alex
> >
> > Oliver Koch wrote:
> >> Hello,
> >>
> >> i am trying to dynamically change the caption of a window. How can I
> >> accomplish that task?
> >>
> >> I am in an subclass of window and a call to
> >>
> >> this.set({caption: x})
> >>
> >> fails with an error message and if I do
> >>
> >> alert(this.caption)
> >>
> >> I get undefined.
> >>
> >> Please, has anyone any suggestions?
> >>
> >> Greetz,
> >>
> >> Oliver Koch
>
>
> Both the this.setCaption(x) and the generic setter this.set({caption:
> x}) should work. You should first find out why you get an error (maybe
> you post the error message here, for instance). May be related to your
> sub-classing.
>
> Since you are "trying to _dynamically_ change the caption of a window",
> i.e. programmatically and _not_ in combination with an user interaction
> (button click, etc.), you may have to flush the queues manually to
> update the UI:
>
> qx.ui.core.Widget.flushGlobalQueues();
>
> Since most changes to the UI are related to user interaction, you
> normally would not have to trigger such an update manually. You
> frequently need to do so explicitly, though, for AJAX calls that result
> in immediate changes to the UI.
>
> Hope that helps,
>
> Andreas
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel