medleyj
May 10th, 2001, 09:23 AM
I'm writing a program that draws lines on a Picture control using the line method. Later, I need to be able to erase a line. Does anyone have a code example showing how to get access to a previously drawn line?
Thanks in advance.
Joe
Kdev
May 10th, 2001, 09:33 AM
It is my understanding that when you use the line method to draw lines NO information is stored about the line. You can clear ALL lines by using the Clear method of the same object but I do not believe that you can access any particular line.
I built an application that used the line method to draw and what I did was to store previous x,y locations in an array. Then I can use this array to find previous lines. To erase just one line: if you know the x,y locations just draw a new line over the old line using the background color of the object.
-K