[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read-only Fred window
- To: Sheldon Shen <shen@granite.Jpl.Nasa.Gov>
- Subject: Re: read-only Fred window
- From: Luke Hohmann <hohmann@csmil.umich.edu>
- Date: Mon, 29 Apr 91 16:31:21 -0400
- Cc: info-macl@cambridge.apple.com
- In-reply-to: Your message of Mon, 29 Apr 91 13:00:09 -0700. <9104292000.AA21914@granite.Jpl.Nasa.Gov>
Sheldon:
Here is a 2-minute hack. Enjoy:
(defobject *ro-fred-window* *fred-window*)
; eat keystrokes from the user.
;
(defobfun (window-key-event-handler *ro-fred-window*) (char)
(declare (ignore char))
(values))
; also, ignore clicks. Maybe will have some problems on
; using the scrollbars, but can fix easily enough.
;
(defobfun (window-click-event-handler *ro-fred-window*) (where)
(declare (ignore where))
(values))
; we always want the cursor to appear like an arrow whenever we are
; over a read only fred window
;
;
(defobfun (window-update-cursor *ro-fred-window*) (where)
(declare (ignore where))
(set-cursor *arrow-cursor*))
-- Luke