I am using Borland C++Builder 6.
I have two methods of the form:
void __fastcall FDisplay::PaintBox1Paint(TObject *Sender)
void __fastcall FDisplay::TimerLabelsViewTimer(TObject *Sender)
In the first method I draw the coordinate system.
and in the second method I did:
PaintBox1->Canvas->MoveTo(693,201);
PaintBox1->Canvas->LineTo(770,187);
and the line doesn't appear on the coordinate system.
my second question, how can I erase the line and return to the base paint? Should I do this?
PaintBox1->Invalidate();
PaintBox1->Update();