home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20348 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!psinntp!panix!rmah
  3. From: rmah@panix.com (Robert Mah)
  4. Subject: Re: How do I find a hole in the DeskTop?!
  5. Message-ID: <1992Dec28.024044.3652@panix.com>
  6. Date: Mon, 28 Dec 1992 02:40:44 GMT
  7. References: <yjc-251292012254@yjc-slip.dialin.cwru.edu>
  8. Organization: PANIX Public Access Unix, NYC
  9. Lines: 29
  10.  
  11. In <yjc-251292012254@yjc-slip.dialin.cwru.edu> yjc@po.cwru.edu (Jerome 'TofuSoft' Chan) writes:
  12.  
  13. >How do I find a clear section of the desktop which is NOT covered by
  14. >Windows?! I've want my clock application window to slowly creep to the
  15. >nearest uncovered region on the desktop.
  16.  
  17. GREAT IDEA.  I'm gonna use it too, if you don't mind.
  18.  
  19. Anyway, you just gotta look at the structure regions of all the windows that
  20. are visible.  Each application keeps a list of windows starting at the global
  21. WindowList.  The only problem is to get WindowList for each application.  
  22. One possible way is to patch InitWindows and grab that app's WindowList
  23. global.  Don't forget to patch ExitToShell to catch the application's quitting.
  24.  
  25. Another option is to track all window creation, deletion, hiding and showing.
  26.  
  27. On second thought, does GrayRgn hold the VISIBLE desktop or the whole thing?
  28. Not sure on this...but a little experimentation should clear it up.
  29.  
  30. Cheers,
  31. Rob
  32.  
  33.  
  34.  
  35. -- 
  36. [--------------------------------------------------]
  37. [  Robert S. Mah   |  "Every day an adventure,     ]
  38. [  rmah@panix.com  |   every moment a challenge."  ]
  39. [--------------------------------------------------]
  40.