Using Delphi 7, I need to create an application that can be used to show wiring between objects, thus a graphic application to which one can add as many as required graphic objects represented in the attached diagram example as Objects A, B and C. Each object, has a variable number of connection points, blocks shown as 1 to x as per the example. Thus by changing a variable an object with the appropriate number of connector blocks is created.
Once the Object blocks with their connector blocks have been created on the graphic, the idea would be to click on, for example, Object As connector block 6 and drag a line to Object Bs connector block 2, and so connect the two points with a line. This process is then repeated for each required connection.
The connector blocks should be attached to the Object blocks and should it be necessary to move an Object block to another place on the graphic, then it should be able to drag the Object block together with its connector blocks while the lines should remain glued to the connector blocks and be repainted to show the connections to the same connector blocks of the Object in its new position.
Graphic-object-link-example.JPG
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_23343836.html