home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21242 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!unixg.ubc.ca!rudolph
  2. From: rudolph@unixg.ubc.ca (Christopher E Rudolph)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Detecting mouse position in a window ?
  5. Date: 12 Jan 93 03:41:20 GMT
  6. Organization: The University of British Columbia
  7. Lines: 20
  8. Message-ID: <rudolph.726810080@unixg.ubc.ca>
  9. NNTP-Posting-Host: unixg.ubc.ca
  10. Summary: Sory about this common FAQ but I can't seem to find it in CSMP
  11. Keywords: faq mouse in window regions etc help
  12.  
  13. I know this is a FAQ, seems I have seen it somewhere, but I have been
  14. browsing through every volume of CSMP (using Easy View nice program for
  15. looking a volumes of stuff).  Okay back to the question.
  16.  
  17. I have this simple little hack that I am working on that has three
  18. rectangles (or maybe I should make them regions? ...hmmm.) that correspond
  19. to pseudo edit text fields ( I plan to copybits changed values into them
  20. as the user types on the keyboard, like a calculator).  So I have a few
  21. definitions of cursor types.  I want to automatically switch the cursor to
  22. a certain type as it passes over any of these three fields, and change it
  23. back if it passes over anything else.
  24.  
  25. I obviously need to be checking where the mouse is at any one time and act
  26. appropriately.  Does anyone have an example of how to do this gracefully. 
  27. I would appreciate it.
  28.  
  29. thanks, and sorry about it begin an FAQ
  30.  
  31. Chris Rudolph (ComputerScience, UBC) <rudolph@unixg.ubc.ca>
  32. =---------------------------------------------------------=
  33.