home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / intervie / 3617 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.0 KB  |  43 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!cbnewsf.cb.att.com!dac
  3. From: dac@cbnewsf.cb.att.com (david.a.copperman)
  4. Subject: Re: tracking cursor motion in a separate process
  5. Message-ID: <1993Jan22.235353.20246@cbfsb.cb.att.com>
  6. Keywords: InputHandler
  7. Sender: news@cbfsb.cb.att.com
  8. Organization: AT&T
  9. Date: Fri, 22 Jan 1993 23:53:53 GMT
  10. Lines: 31
  11.  
  12. Previously, linton@marktwain.rad.sgi.com (Mark Linton) wrote:
  13. > In article <1993Jan6.162051.471@cbfsb.cb.att.com>, dac@cbnewsf.cb.att.com (david.a.copperman) writes:
  14. > |> I have two processes, A and B.  A is written in X (no higher-level
  15. > |> packages).  It puts up a single window.  Process B forks and execs
  16. > |> A, and waits for it to come up.  Then it extracts the id (the X type
  17. > |> is Window) of A's window.  Process A (the graphics controller for
  18. > |> a geographical information system) operates under the control of B.
  19. > |> B needs to track cursor motion in A's window, so it (B) can do
  20. > |> real-time screen-to-world coordinate conversion and show the coordinates
  21. > |> in a window owned by B.
  22. > |> 
  23. > |> ...
  24. > |> Is there some class in IV that I can use in this fashion?  More
  25. > |> specifically, can I create some object to which I can assign A's
  26. > |> Window, register for cursor motion in that window, and IV will call
  27. > |> the event handler for me?
  28. > It sounds like you would need to write a subclass of the InterViews Window
  29. > class that is given an initial X window id instead of getting one as
  30. > the result of creating a window.
  31.  
  32. The IV Window class requires a pointer to a non-null Glyph in its constructor.
  33. How can I create a Glyph for this window that won't appear on the screen
  34. or hose up anything in the derived Window class object?
  35.  
  36. Once I have created this unique Glyph, I can write a class derived from
  37. Inputhandler that takes that Glyph in its constructor, and in this derived
  38. Inputhandler class I would write a ::move routine that would be called
  39. whenever the cursor moves in that window?
  40.  
  41. Dave Copperman
  42.