[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:  pb with start-picture
- To: Mathieu.Lafourcade@imag.fr
 
- Subject: Re:  pb with start-picture
 
- From: "Mark A. Tapia" <markt@dgp.toronto.edu>
 
- Date: Tue, 13 Dec 1994 10:46:31 -0500
 
- Cc: info-mcl@cambridge.apple.com
 
- Sender: owner-info-mcl@digitool.com
 
Mathieu Lafourcade writes on Sat 10 DEc:
  I would like to create a picture off-screen, but it seems that the view
  should be visible and always bigger than my picture otherwise the view is
  not completly drawn.
  How can I adress this?
I've contributed code in the contrib library (available by anonymous ftp
from cambridge.apple.com in the file 
pub/MCL2/contrib/menu-enhancements.sit.hqx).
If you examine the oou-utils.lisp file within the binhexed archive,
you'll find routines that manipulate a class of windows called a wmgr-view.
The routines allow you to "save" and "restore" a portion of the screen view
(either in color or 1-bit monochrome). Part of the code appears below. Notice
that it always sets the clip region of a wmgr-view to the maximum extent.
Hopefully, this will help.
(defmethod view-clip-region ((sv WMgr-view))
  (declare (ignore sv))
  (#_SetRectRgn :ptr ccl::*simple-view-clip-region* 
   :signed-integer -32768 :signed-integer -32768 
   :signed-integer 32767 :signed-integer 32767)
  ccl::*simple-view-clip-region*)