home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / oop / macapp3 / 647 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  857 b 

  1. Path: sparky!uunet!munnari.oz.au!sgiblab!spool.mu.edu!agate!stanford.edu!apple!applelink.apple.com
  2. From: D4161@AppleLink.Apple.COM (Adept, John DiBiasi,PAS)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re: How can I detect overlappi
  5. Message-ID: <728051870.7209151@AppleLink.Apple.COM>
  6. Date: 26 Jan 93 12:16:00 GMT
  7. Sender: usenet@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 12
  10.  
  11. >[1] MacApp makes it possible to change from the program
  12. >    the relative position of a view from its superView using?
  13.  
  14. >[2] Can I detect from my program if two views are just about to start
  15. >    overlapping (they share an edge or a corner)?
  16.  
  17. (1) Use the Locate() Method.
  18.  
  19. (2) Depending upon the characteristics of what you're displaying, check out the
  20. Quickdraw SectRect and SectRgn calls which identify if there is an intersection
  21. between two rectangles or regions.
  22.  
  23.