home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18235 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.9 KB

  1. Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!osustat.mps.ohio-state.edu!dsb
  2. From: dsb@osustat.mps.ohio-state.edu (David S. Blumenthal)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Super-Floating Windows
  5. Date: 10 Nov 1992 21:08:06 GMT
  6. Organization: OSU Statistical Computing Laboratory
  7. Lines: 28
  8. Distribution: world
  9. Message-ID: <1dp8bmINN1av@zaphod.mps.ohio-state.edu>
  10. NNTP-Posting-Host: osustat.mps.ohio-state.edu
  11.  
  12. Thanks to all who have contributed to this thread so far.  It has helped me
  13. out immensely.
  14.  
  15. I've done some testing with the "hole in GrayRgn" approach, and it works
  16. sufficiently.  I think that as long as the part of GrayRgn that the window
  17. removes does not stop corresponding to a piece of a monitor, there shouldn't
  18. be any foreseeable problems.  If it does, however, any window in that area
  19. will be affected.
  20.  
  21. As pointed out, menus function correctly over the affected region.  However,
  22. the window manager does not ignore GrayRgn - update events are not generated
  23. for my window.  Does anyone have any good ideas on how to determine when part
  24. of my window must be redrawn?  Do InvalRect and InvalRgn check for intersection
  25. with GrayRgn?  If not, could I check for intersection between my holeRgn and
  26. the window port's updateRgn?  When would I do this?
  27.  
  28. The only other events I am interested in are mouseDown and mouseUp.  These get
  29. to the window without regard to GrayRgn.  In order to catch all clicks over my
  30. window, regardless of what would normally overlap, and of what application is
  31. frontmost, I will patch SystemEvent and check theEvent.where (as suggested by
  32. the UseNet Mac Programming Guide).
  33.  
  34. I really appreciate your comments.
  35.  
  36. -----------------------------------------------------------------------
  37. | Dave Blumenthal                  | The Ohio State University        |
  38. | dsb@osustat.mps.ohio-state.edu   | Statistical Computing Laboratory |
  39. ------ There is a fine difference between insight and insanity. -------
  40.