Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!elroy.jpl.nasa.gov!zardoz.cpd.com!dhw68k!emmayche From: emmayche@dhw68k.cts.com (Mark Hartman) Newsgroups: comp.sys.mac.programmer Subject: Re: How does one save/restore clipping? Message-ID: <1991Jan2.163427.1565@dhw68k.cts.com> Date: 2 Jan 91 16:34:27 GMT References: <1CE00001.csbntk@tbomb.ice.com> Organization: Wolfskill & Dowling residence; Anaheim, CA (USA) Lines: 16 In article <1CE00001.csbntk@tbomb.ice.com> time@tbomb.ice.com writes: >Now, however, I have run into a case where I wish I could save the >clipping of a port, and restore it later. I see no standard mathod >mentioned in IM concerning this function. I presume that saving the >ClipRgn handle in the port and replacing it afterwards is the approach, >but hadn't thought through what other needs I must address. The simplest way to do this is with the GetClip() and SetClip() routines (IM-I-166,167); in fact, "preserving the current clipRgn" is specifically mentioned as the purpose of these calls. -- Mark Hartman, N6BMO "What are you just standing there for? Where Applelink: N1083 or BINARY.TREE do you think you are, DIS-ney World??" Internet: emmayche@dhw68k.cts.com -- General Knowledge, from uucp: ...{spsd,zardoz,felix}!dhw68k!emmayche CRANIUM COMMAND