How to create a 'line' object.
Posted on 1997-06-04
I'm just beginning delphi. In general, I don't have much experience on the graphical side of things. Mostly I write business apps.
I know that the Canvas property has LineTo and MoveTo stuff for drawing lines. The problem is that I want to be able to move these lines at runtime. In VB there is a line object that can be moved. How do I do this in delphi?
I'm creating a program that allows a user to graphically connect two boxes with a line. When the box moves (by the user), I want the lines to move as well. Also I want the user to be able to grab the line and reposition it as well.
Any help, code would be great.