Article View: net.micro.mac
Article #6754Re: problem with regions
From: marchesi
Date: Fri, 08 Aug 1986 15:09
Date: Fri, 08 Aug 1986 15:09
34 lines
1709 bytes
1709 bytes
In article <1434@oddjob.UUCP> rfl@oddjob.UUCP writes:
>Here is a problem I am having with regions:
>
>I create a region and set it equal to a rectangle with a call to RectRgn.
>I then check to see if the mouse is clicked within the region and
>if it is, I call DragGrayRgn with a nil for the actionProc. After
>dragging the region across the window, I release the mouse button. If I
>try to drag the region again, however, I find that the region is
>defined as the frame, not the enclosed area of the rectangle.
>
> Obviously I want the region to remain unchanged.
>
>Hoping for an answer......
Inside Macintosh, Vol I, FUNCTION DragGrayRgn:
'NOTE: DragGrayRgn alters the region; if you don't want the original
changed, pass DragGrayRgn a handle to a copy.'
Just use NewRgn and CopyRgn first - and pass the copy.
OK?
ciao
Paolo
----------------------------------------------------------------------------
Paolo Petta
p-mail: DD Division
CERN
CH-1211 Geneva 23
Switzerland
e-mail: ...{seismo,philabs,decvax,...}!mcvax!cernvax!marchesi
Technical Details
Message-ID:
<358@cernvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ucbvax!ucbcad!nike!lll-crg!seismo!mcvax!cernvax!marchesiReferences:
<1434@oddjob.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ucbvax!ucbcad!nike!lll-crg!seismo!mcvax!cernvax!marchesi From: marchesi@cernvax.UUCP (marchesi) Newsgroups: net.micro.mac Subject: Re: problem with regions Message-ID: <358@cernvax.UUCP> Date: Fri, 8-Aug-86 11:09:30 EDT Article-I.D.: cernvax.358 Posted: Fri Aug 8 11:09:30 1986 Date-Received: Mon, 11-Aug-86 04:39:24 EDT References: <1434@oddjob.UUCP> Reply-To: marchesi@cernvax.UUCP (PUT YOUR NAME HERE) Distribution: net Organization: CERN, Geneva/Switzerland Lines: 35 Keywords: DragGrayRgn