home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4265 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.2 KB  |  31 lines

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