Re: active entries in TCL/Tk



----- 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


.



Relevant Pages

  • Re: Console-based exe COM server
    ... with a type of "exe" it generates the entry-point for WinMain, ... Just because a project has a WinMainentry ... point does not mean it has to create any GUI windows. ... and prints messages to the console? ...
    (microsoft.public.win32.programmer.ole)
  • What are the entry points for Console applications and Windows based application.
    ... entry points for Console application and Windows based application if ... Jigar Mehta ...
    (microsoft.public.vc.mfc)
  • Re: Event loop bug?
    ... Run it under ActiveTcl 8.4.19 on Windows, select some arbitrary file, and then it is not possible to enter anything into the entry widget. ... The bug is not reproducible on Linux. ...
    (comp.lang.tcl)
  • Event loop bug?
    ... Run it under ActiveTcl 8.4.19 on Windows, select some arbitrary file, and then it is not possible to enter anything into the entry widget. ... The bug is not reproducible on Linux. ...
    (comp.lang.tcl)
  • Re: CreateProcessAsUser - Process starts then exits
    ... Windows XP Media Center ... public Int32 dwX; ... public IntPtr lpReserved2; ... parent's console. ...
    (microsoft.public.win32.programmer.kernel)