[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
window-zoom-event-handler (C-X 1)
- To: squeegee@world.std.com
- Subject: window-zoom-event-handler (C-X 1)
- From: wilcox@cmns.think.com
- Date: Tue, 15 Sep 92 14:16:44 EDT
- Cc: info-mcl@cambridge.apple.com
- In-reply-to: Stephen C. Gilardi's message of Tue, 15 Sep 1992 13:59:08 -0400 <199209151759.AA04932@world.std.com>
Here's the code I use. It's not elegant but it works.
(defun entire-screen ()
(make-point
*screen-width*
(- *screen-height* *menubar-bottom*
(if (fboundp 'gc-thermometer)
(let ((windoid (first (windows :class 'ccl::gc-windoid))))
(point-v (view-size windoid)))
0
))))
(defmethod one-window ((w fred-mixin))
(set-view-position w (make-point 0 *menubar-bottom*))
(set-view-size w (entire-screen))
)
(comtab-set-key *control-x-comtab* #\1 'one-window "Fill the screen with this window")