Re: top level windows query



Alexandre Ferrieux wrote:
On Jun 28, 5:27 pm, Bryan Oakley <oak...@xxxxxxxxxxxxxxxxxxxx> wrote:
pollas...@xxxxxxxx wrote:
Hello,
I need to query the tcl interpreter to know the list of all top level
windows. There is any specific command? Thank in advance for any help.
There is no specific command. It's fairly easy to get a list of all
children in a window. From that, you can query each child to determine
if it is a toplevel. Then do the same for each child. Lather, rinse,
repeat until you've examined all the widgets.

Right. And we may help the OP a tad further by reminding him that the
root of all this hierarchy is named ".".
(eons ago when I discovered Tk, this slight lack of symmetry in widget
paths bothered me for several seconds: "." and ".t" may be equal
toplevels...)


not sure what you mean by equal, but a toplevel can be a child of any widget
not just . so "." ".t" ".t.t2" ".f1.f2.f3.f4.f5.t3" can all be toplevels


Bruce
.



Relevant Pages

  • Re: DS Get in Windows 2003 Domain
    ... "Thorsten Schmitt" wrote in ... > because this command cannot be used against domains which contain Windows ... > I need to perform these query to prepare a AD Quota, but why do I get this ...
    (microsoft.public.windows.server.active_directory)
  • Re: top level windows query
    ... windows. ... There is no specific command. ... you can query each child to determine if it is a toplevel. ...
    (comp.lang.tcl)
  • DS Get in Windows 2003 Domain
    ... I want to perform this command: ... The domain has 4 Windows Server 2003 Domain Ccontroller and runs in Windows ... When I perform the same query in a testdomain (only 1 DC in a virtual server ...
    (microsoft.public.windows.server.active_directory)
  • Re: top level windows query
    ... I need to query the tcl interpreter to know the list of all top level ... windows. ... There is no specific command. ... repeat until you've examined all the widgets. ...
    (comp.lang.tcl)
  • Re: receiving win2k PostMessages with tk?
    ... > windows message in my application. ... The rest seem to be passed through to the widgets to be handled ... I've always found the [wm command] to be fairly limited in both ... WM_COMMAND "doWhatever wparam lparam"]. ...
    (comp.lang.tcl)