Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!sdcc6!amos!jonah From: jonah@amos.ucsd.edu (Jonah Stich) Newsgroups: comp.sys.apple2 Subject: Re: offscreen grafports in Orca/Pascal Message-ID: <12241@sdcc6.ucsd.edu> Date: 10 Aug 90 18:04:35 GMT References: <43826@apple.Apple.COM> <12237@sdcc6.ucsd.edu> <43842@apple.Apple.COM> Sender: news@sdcc6.ucsd.edu Organization: University of California, San Diego Lines: 36 Nntp-Posting-Host: amos.ucsd.edu In article <43842@apple.Apple.COM> mattd@Apple.COM (Matt Deatherage) writes: >In article <12237@sdcc6.ucsd.edu> jonah@amos.ucsd.edu (Jonah Stich) writes: >>Okay, I've been bitten by this before, so I just thought I'd chip in and warn >>you before you havev this problem, too. When you open a grafPort this way >>it sets up a visRgn that is the size of the screen. If you want to do things >>in this grafPort (I've had problems drawing text) you have to make the >>following call sequence: >> >>NewRgn >>OpenRgn >>(FrameRect, whatever...) >>CloseRgn >>SetVisHandle >> >>Jonah > >You'll probably find SetRectRgn to be a whole lot easier. > >Matt Deatherage, Apple Computer, Inc. | "The opinions represented here are You know, I've read through all 3 Toolbox References, cover to cover, and I still manage to see calls that I've never heard of before! Jeez.... :) Matt's right though. This would be much better: NewRgn SetRectRgn SetVisHandle Thanks for catching that, Matt. Not onl do I learn something every day, but my rhyming abilities improve, too. :) Jonah jonah@amos.ucsd.edu