Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!apple!mattd From: mattd@Apple.COM (Matt Deatherage) Newsgroups: comp.sys.apple2 Subject: Re: offscreen grafports in Orca/Pascal Message-ID: <43842@apple.Apple.COM> Date: 10 Aug 90 17:27:52 GMT References: <3980@rex.cs.tulane.edu> <43826@apple.Apple.COM> <12237@sdcc6.ucsd.edu> Organization: Apple Computer Inc, Cupertino, CA Lines: 24 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 Developer Technical Support, Apple II | not necessarily those of Apple Group. Personal mail only, please. | Computer, Inc. Remember that." ============================================================================