Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2001, 10:17 AM
Genesis Genesis is offline
Junior Member
 
Join Date: Jan 2001
Posts: 13
Default Drawing a line on mouse move then erasing it and drawing it anew prt 2

Lapince, your suggestion that in order to draw a line and erase it on mouse move then redraw it to the new X,Y: that I use the "not" method.. And I think that would work very well, but I don't know how I would use that in this case, with Lines, etc.

I have this:

MoveTo(StartX,StartY);
LineTo(X,Y);

But that obviously draws the lines over and over again and doesnt do the erasing portion I tried using "OldX, OldY" and redrawing the line in the colour of the background, but well that erases all the drawing that it comes across

Any ideas for the not method?

Thanx, in advance
Gen
Reply With Quote
  #2  
Old 01-20-2001, 11:03 AM
Claude Claude is offline
Senior Member
 
Join Date: Jan 2001
Posts: 178
Default RE: Drawing a line on mouse move then erasing it and drawing it anew prt 2

I successfully draw/erase lines on mousemove events by setting Pen.Mode := pmNotXOR;
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.