home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!agate!spool.mu.edu!uwm.edu!cs.utexas.edu!torn!nott!emr1!jagrant
- From: jagrant@emr1.emr.ca (John Grant)
- Subject: Re: Moving Lines
- Message-ID: <1992Dec16.044226.26992@emr1.emr.ca>
- Organization: Energy, Mines, and Resources, Ottawa
- References: <18565@mindlink.bc.ca>
- Date: Wed, 16 Dec 1992 04:42:26 GMT
- Lines: 20
-
- In article <18565@mindlink.bc.ca> Steve_Goyette@mindlink.bc.ca (Steve Goyette) writes:
- >HI all,
- >
- > I would like to be able to plot a line between two points with
- >handles on each end. And then be able to re-position the line by draging the
- >handles. I can do this by capturing the mouse moves and re-painting, but I
- >don't want to have to re-paint a large area (Which is used by a drawing) Any
- >ideas???
- Draw it using R2_XORPEN or R2_NOT mode (function SetROP2).
- You will need to draw it twice for each movement:
- draw initial line at (x,y) in XOR mode
- when you drag it to a new (xnew,ynew) point:
- draw at (x,y) again in XOR mode to erase
- x=xnew;y=ynew;
- draw at (x,y) in XOR mode
- Repeat this cycle as you move it.
- --
- John A. Grant jagrant@emr1.emr.ca
- Airborne Geophysics
- Geological Survey of Canada, Ottawa
-