home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5683 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  2.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!bionet!raven.alaska.edu!acad3.alaska.edu!sxmlk
  2. From: sxmlk@acad3.alaska.edu (KIENENBERGER MIKE L)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Drag and Drop in < NS3.0
  5. Summary: Drag and Drop in < NS3.0
  6. Message-ID: <18AUG199218362802@acad3.alaska.edu>
  7. Date: 19 Aug 92 02:36:00 GMT
  8. References: <1992Aug17.104453.11070@monu6.cc.monash.edu.au> <18AUG199203332039@acad3.alaska.edu>
  9. Sender: news@raven.alaska.edu (USENET News System)
  10. Organization: University of Alaska - Fairbanks
  11. Lines: 30
  12. News-Software: VAX/VMS VNEWS 1.41.UAC
  13. Nntp-Posting-Host: acad3.alaska.edu
  14.  
  15. In article <18AUG199203332039@acad3.alaska.edu>, sxmlk@acad3.alaska.edu (KIENENBERGER MIKE L) writes...
  16. >In article <1992Aug17.104453.11070@monu6.cc.monash.edu.au>, ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes...
  17. >>I have to implement Drag and Drop behaviour in NS2.1, but I would also like
  18. >>to know wether NS3.0 can do it properly. (Look forward to reading the
  19. >>article on it simson)
  20. >> 
  21. >>OK, I would like to know wether drag and drop can be implemented such that
  22. >>the application can determine specifically which window is under the cursor.
  23. >>ie. if there are overlapping windows, I must be able to tell which is at the
  24. >>top. ie. above all the rest
  25. >> 
  26. >>Anybody done this?
  27. >Yes! (Finally.)
  28. >The key is the little-known postscript operator "findwindow."
  29. >    <x> <y> <place> <otherwindow> findwindow <x'> <y'> <window> <bool>
  30. >(If you're planning on writing your own routine, note that <otherwindow>
  31. > is a local window, while <window> is a global window! If it seems inconsistant
  32. > to you, you are not alone!)
  33. [example deleted]
  34.  
  35. For those who are wondering why this is necessary (since when using built-in
  36. NeXT icon-dragging routines, the proper window is identified), the real issue
  37. being discussed is dragging/dropping inner-app objects (palette objects, for
  38. example).  This is the missing code for the AppkitDragView class used
  39. in WhatADrag and other NextDeveloper examples. 
  40. =============================================================================
  41. -Mike Kienenberger                       SXMLK@ALASKA           (BITNet)
  42.  University of Alaska Computer Network   SXMLK@acad3.alaska.edu (Internet)
  43.  University of Alaska-Fairbanks
  44.