Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!cbmvax!higgin From: higgin@cbmvax.cbm.UUCP (Paul Higginbottom) Newsgroups: net.micro.amiga Subject: Re: Need Intuition Help Message-ID: <640@cbmvax.cbmvax.cbm.UUCP> Date: Sun, 17-Aug-86 12:13:43 EDT Article-I.D.: cbmvax.640 Posted: Sun Aug 17 12:13:43 1986 Date-Received: Tue, 19-Aug-86 07:41:47 EDT References: <1012@unirot.UUCP> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom) Organization: Commodore Technology, West Chester, PA Lines: 22 In article <1012@unirot.UUCP> mikef@unirot.UUCP (mike fritze) writes: > > I have an application in which I would like to program a resizable > box on an Amiga window which can be positioned and resized by the > mouse to select a screen area of interest. I already know how to > use the mouse in a C program via IDCMP but I do not know how to > generate the box. If I use a sprite, I am limited to a width of 16 > pixels. How can I generate such a box that does not interfere with > the graphic image in the window it is used. Any help would be greatly > appreciated. Thanx. Draw a line around the area of interest in COMPLEMENT mode. To put the picture back the way it was, you simply draw it again; an "information preserving" transformation! To accomplish this, you'll need SetDrMd(), Draw(), and possibly SetAPen(). See RKM vol 1 for details. Hope this helps, Paul. Disclaimer: I do not work for Commodore and my opinions are my own.