home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21248 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.2 KB  |  29 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!jbush
  3. From: jbush@magnus.acs.ohio-state.edu (J Eric Bush)
  4. Subject: Re: Detecting mouse position in a window ?
  5. Message-ID: <1993Jan12.050224.14617@magnus.acs.ohio-state.edu>
  6. Keywords: faq mouse in window regions etc help
  7. Sender: news@magnus.acs.ohio-state.edu
  8. Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu
  9. Organization: The Ohio State University
  10. References: <rudolph.726810080@unixg.ubc.ca>
  11. Date: Tue, 12 Jan 1993 05:02:24 GMT
  12. Lines: 15
  13.  
  14. In article <rudolph.726810080@unixg.ubc.ca> rudolph@unixg.ubc.ca (Christopher E
  15.  Rudolph) writes:
  16.  
  17. >I obviously need to be checking where the mouse is at any one time and act
  18. >appropriately.  Does anyone have an example of how to do this gracefully.
  19. >thanks, and sorry about it begin an FAQ
  20.  
  21. Just use the GetMouse(p:point) procedure.  If at first it gives you a global 
  22. point, then all you have to do it say point:=GlobalToLocal(p).
  23.  
  24. Eric
  25. -- 
  26. ------------------------------------------------------------------------------
  27. J. Eric Bush
  28. Internet: jbush@magnus.acs.ohio-state.edu
  29.