Re: Win32Lib: Enable Focusability
- Posted by cklester <cklester at yahoo.com> Aug 04, 2004
- 448 views
don cole wrote: > > I would like to focus an EditText (cursor blinking ready for input) > right off on starting my program. I tried onOpen and many other things. > It will work only if I call it from a MenuItem or PushButton. > Any Ideas? You can either focus it on startup of the window WinMain( {myWindow, myEditText}, Normal ) or, focus to it in the Activate event for the window. setFocus(myEditText) setIndex(myEditText, w32SelectAll) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/