home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / tcl / 1873 < prev    next >
Encoding:
Text File  |  1992-11-18  |  892 b   |  23 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!caen!batcomputer!cornell!davis
  3. From: davis@cs.cornell.edu (Jim Davis)
  4. Subject: Can I operate on windows not created by tk?
  5. Message-ID: <1992Nov18.210008.27144@cs.cornell.edu>
  6. Organization: Cornell Univ. CS Dept, Ithaca NY 14853
  7. Distribution: usa
  8. Date: Wed, 18 Nov 1992 21:00:08 GMT
  9. Lines: 12
  10.  
  11. I would like to be able to operate on windows created by other
  12. applications besides tk.  In particular, what I want to do is grab
  13. bitmaps from those windows, something like what xwd or the Open
  14. Windows snapshot tools do.  
  15.  
  16. I daresay I'll have to write new tk commands to get those bits,
  17. (anyone done that?).  It is pretty easy to grab the mouse and get an
  18. XY position in the root coordinate frame, but what do I do next?  I
  19. don't see any way to find the window at those coordinates.  The
  20. window manager (twm) must know, but how can I ask it anything?
  21.  
  22.  
  23.