[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Window Questions
- From: "Mark A. Tapia" <email@example.com>
- Date: Fri, 9 Jul 1993 14:54:14 -0400
firstname.lastname@example.org writes on Fri Jul 9 14:03:12 1993:
Try this: make an instance of a window, start a picture in that window, and
then flip that window from foreground to background a few times. Now get
the picture. You will notice that the picture will vary in size depending
on the number of times that you obscured and uncovered the window even
though you never sent a single drawing command to the window.
The same code includes:
... send window to the foreground and background ...
(setq ppict (get-picture wind))
The start-picture command is a highlevel interface to the openPicture
trap call. The generic fuynction hides the en and starts recording quickdraw
commands in a picture whose frame is the portrect of the window wind.
Every time you send the window to the foreground or bring another window into
the foreground the commands will be recorded.
You can see the same "quirky" behaviour if you say
(setq n 10)
(loop for i fixnum from 1 to n
do (print i))
(setq pict (get-picture wind))
Changing the value of n from 10 to 1 will change the "size" of the
If you want to draw an entire picture, then wrap the forms in