home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17962 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.5 KB

  1. Path: sparky!uunet!mcsun!fuug!funic!sauna.cs.hut.fi!cs.hut.fi!jtp
  2. From: jtp@cs.hut.fi (Jukka Partanen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: LockIBase
  5. Date: 30 Dec 1992 21:57:59 GMT
  6. Organization: Helsinki University of Technology, Finland
  7. Lines: 26
  8. Distribution: inet
  9. Message-ID: <JTP.92Dec30235759@cardhu.cs.hut.fi>
  10. References: <JTP.92Dec27193513@laphroaig.cs.hut.fi> <paulk.2z9x@terapin.com>
  11. NNTP-Posting-Host: cardhu.cs.hut.fi
  12. In-reply-to: paulk@terapin.com's message of 29 Dec 92 00:22:35 GMT
  13.  
  14. In article <paulk.2z9x@terapin.com> paulk@terapin.com (Paul Kienitz) writes:
  15.  
  16. > I ended up
  17. > working around this in my personal DMouse variant by grabbing the
  18. > MouseX and MouseY fields of the screen itself, so it activates the
  19. > window where the mouse was as of the PREVIOUS input event instead of
  20. > the current one.
  21.  
  22.     Well, that's about the same approach I use, and I've found it
  23.     to be adequate. What I really would like to know is the
  24.     correct locking protocol. First I LockIBase to browse through
  25.     the screens and find the correct one, but then I must release
  26.     to IBase lock to call WhichLayer. But the owner of the screen
  27.     may close it after the IBase is released, so I must Forbid
  28.     before unlocking the IBase and Permit after finding and
  29.     activating the window. Yuck, I say. Isn't there a better way?
  30.  
  31. > Does anyone know a way (preferably forward-compatible) to convert
  32. > arbitrary input event coordinates to screen coordinates?
  33.  
  34.     If you find out a cool way, tell me too!
  35.  
  36.     jtp
  37.  
  38. Zippy quotation:
  39. YOW!!  The land of the rising SONY!!
  40.