home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / lisp / mcl / 1567 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.lang.lisp.mcl
  2. Path: sparky!uunet!convex!darwin.sura.net!spool.mu.edu!agate!boulder!cambridge.apple.com!apple!taligent!data.nas.nasa.gov!ames!saimiri.primate.wisc.edu!sdd.hp.com!caen!uwm.edu!daffy!uwvax!uchinews!tango.uchicago.edu!mcdougal
  3. From: mcdougal@cs.uchicago.edu (Tom McDougal)
  4. Subject: Re: parallel text dialog items
  5. Message-ID: <721410086.6349@news.Colorado.EDU>
  6. Lines: 23
  7. Sender: news
  8. Organization: Univ. of Chicago Computer Science
  9. References: <1992Nov9.170736.5118@midway.uchicago.edu>
  10. Distribution: co
  11. Date: 9 Nov 92 17:29:23 GMT
  12. Approved: news
  13. X-Note1: mail msgid was <1992Nov9.172923.6367@midway.uchicago.edu>
  14. X-Note2: message-id generated by recnews
  15. Lines: 23
  16.  
  17. >I want to have text appear simultaneously in two places within a
  18. >window.  A variant on the text-edit-dialog-item (from the examples
  19. >folder) would be fine, but I'm not sure how to pass the key-events
  20. >to multiple dialog items.  Several attempts so far have failed.
  21.  
  22. For the record, here is one attempt which did not work.
  23. If someone could help me understand why, I would be grateful:
  24.  
  25. (defclass twin-text-item (aligned-text-dialog-item)
  26.   ((brother :accessor brother :initarg :brother 
  27.             :type 'text-edit-dialog-item)))
  28.  
  29. (defmethod key-event-handler :after ((self twin-text-item) char)
  30.   (key-event-handler (brother self) char))
  31.  
  32.  
  33. ----------------------------------------------------------------------
  34. -Tom McDougal          mcdougal@cs.uchicago.edu         (312) 702-0024
  35. Dept. of Computer Science, University of Chicago
  36.  
  37.         1051, Lady Godiva puts everything she has
  38.         on a horse.  Citizens of Coventry place bets
  39.         for Godiva to show.
  40.