Re: Win32Lib: Enable Focusability

new topic     » goto parent     » topic index » view thread      » older message » newer message

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/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu