Re: active entries in TCL/Tk
- From: "Jeff Godfrey" <jeff_godfrey@xxxxxxxxx>
- Date: Wed, 16 Nov 2005 16:35:49 GMT
----- Original Message -----
From: "Mark Tarver" <dr.mtarver@xxxxxxxxxxxxxx>
Newsgroups: comp.lang.tcl
Sent: Wednesday, November 16, 2005 10:02 AM
Subject: Re: active entries in TCL/Tk
> Just to give a sample of what I'm trying
>
> % entry .e1
> .e1
> % pack .e1
> % focus .e1
> % focus
>
> I'm trying to get TCL to produce an output which
> I can send back to Lisp.
Brian's previous response is correct (as usual... ;^) ).
You can't really test the results of the [focus] command interactively
(at least on Windows), as the "console" window must have focus in
order for you to "type". Since the console has focus, your app
doesn't - which means that the [focus] command returns nothing.
When I tested this (before my original response), I had to use [after]
in order to get the expected result from an interactive session.
In a running application, [focus] *will* return exactly what you
want - the name of the *widget* that has focus - if one exists. If
you get nothing back from [focus] in your running application, then
nothing in your application has focus.
I think if you'll just try it out, you'll see that it really does do
*exactly* what you want.
Jeff
.
- Follow-Ups:
- Re: active entries in TCL/Tk
- From: Mark Tarver
- Re: active entries in TCL/Tk
- References:
- active entries in TCL/Tk
- From: Mark Tarver
- Re: active entries in TCL/Tk
- From: Jeff Godfrey
- Re: active entries in TCL/Tk
- From: Mark Tarver
- Re: active entries in TCL/Tk
- From: Bryan Oakley
- Re: active entries in TCL/Tk
- From: Mark Tarver
- active entries in TCL/Tk
- Prev by Date: Re: pretty-printing lists ...
- Next by Date: Re: How can I pass variable throught "-command"
- Previous by thread: Re: active entries in TCL/Tk
- Next by thread: Re: active entries in TCL/Tk
- Index(es):
Relevant Pages
|