[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parallel text dialog items

>I want to have text appear simultaneously in two places within a
>window.  A variant on the text-edit-dialog-item (from the examples
>folder) would be fine, but I'm not sure how to pass the key-events
>to multiple dialog items.  Several attempts so far have failed.

For the record, here is one attempt which did not work.
If someone could help me understand why, I would be grateful:

(defclass twin-text-item (aligned-text-dialog-item)
  ((brother :accessor brother :initarg :brother 
            :type 'text-edit-dialog-item)))

(defmethod key-event-handler :after ((self twin-text-item) char)
  (key-event-handler (brother self) char))

-Tom McDougal          mcdougal@cs.uchicago.edu         (312) 702-0024
Dept. of Computer Science, University of Chicago

        1051, Lady Godiva puts everything she has
        on a horse.  Citizens of Coventry place bets
        for Godiva to show.