Mike Malone wrote:
> 
> I am trying this tool out.  It seems to be pretty good.  I had a bad
> experience with a tool called XF.
> 
> I have a window containing some controls including an entry widget.  What
> value do I put in take focus attribute to have the entry field take the
> focus when the window is displayed?

I had to try this to be sure. I'm copying this reply to the list in case
it's useful to others.

The takefocus option (man options) is for keyboard traversal and isn't
what you want.

In my test I gave my entry widget an alias "e1" and added this code to
the "main" proc:

global widget
focus $widget(e1)

You would place similar code after the "Window show ..." command if this
applies to other than your main application toplevel.

-- 
...RickM...
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to