It looks like you're new here. If you want to get involved, click one of these buttons!
I need to draw lines on a control that will be on top of another control.
After searching a while, I decided to use TShape.
I created TLine, a sub class o TShape, and I could make its border not to be drawn with 'this->Pen->Style = psClear;' in its constructor. But after that I can not draw anything else using its 'Canvas' property. For example, in 'Paint' I wrote:
this->Canvas->LineTo(Left + Width, Top + Height);
and no line was drawn.
If I delete 'this->Pen->Style = psClear;', the line is drawn.
Does anyone have any idea how can I do this?