Re: top level windows query



pollastri@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.

If this is to solve a problem in your own application, another choice is to simply keep a list of each toplevels, adding to the list each time you create another one.


--
Bryan Oakley
http://www.tclscripting.com
.



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
    ... 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: 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)
  • 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: Menu invisible in container on Windows
    ... Pascal schrieb: ... .menu add command -label example ... The menu does not appear on Windows. ... clone the .menu into toplevel w. ...
    (comp.lang.tcl)