Just a note: In 0.8 it will work exactly the original way you have choosen:
widget.focus() should be enough there. Sebastian Derrell Lipman schrieb: > On Mon, Mar 24, 2008 at 7:34 PM, Bill Adams <[EMAIL PROTECTED]> wrote: >> I have a LoginWindow object which extends qx.ui.window.Window >> >> When the user clicks a login button, it calls this method in >> LoginWindow: >> >> popup : function() >> { >> this.open(); >> >> this.setActive(true); // made no difference >> this.focus(); // made no difference >> >> this.username.setFocused(true); >> // also made no difference >> }, >> >> The LoginWindow object does open, but I don't know how to set focus on >> the username TextField. I've tried the above commands. > > Bill, something like try this: > > popup : function() > { > this.open(); > > qx.client.Timer.once( > function() > { > this.setActive(true); > this.focus(); > }, > this, > 0); > } > > Derrell > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel