That did the trick. Thanks!
----- Original Message ---- From: _why <[EMAIL PROTECTED]> To: [email protected] Sent: Saturday, September 27, 2008 11:55:28 PM Subject: Re: Getting a control to Focus On Sat, Sep 27, 2008 at 09:26:19AM -0700, recursor wrote: > Has anybody been able to get the focus method, say on the edit_line control > to work when starting up a shoes app? What I want is to start up my app and > have an edit_line take focus so I can just start typing. Should be simple: > > Shoes.app do > @edit = edit_line > @edit.focus > end I need to commit a fix for OS X, but the code will also need to focus once the window appears using the `start` event. Shoes.app do @edit = edit_line start { @edit.focus } end _why
