erase line from paintbox borland c++ builder

607 Views Asked by At

*using bcb6 (borland) c++ builder

I did paint box and in OnPaint event of this method I draw axis system.

In addition, in this form I have timer and in timer method I draw lines, but I want that in each time only one line will be on the axis system, means, I want to erase the line before I draw the next line.

I tried to do: paintbox1->canvas->invalidate() in the timer method but it doesn't work.

any ideas what can be the solution for that?

Thanks!

0

There are 0 best solutions below