Hi,
Thanks for your help with this one…tonight I will print and read so be prepared for a question or three ! (No…I will try not to bother you)
In the mean time the final idea is to be able to draw a linking line between shapes so that the line snaps to the centre of the two chosen instance/objects.
If the shapes/ instances are then clicked and dragged around that the line stays connected between the objects.
If the mouse is hovered over the connecting line then it’s alpha is 50 and it can be deleted like any of the other objects you have coded with ‘d’
The connecting line can be drawn from any object to object ie it is possible to have more than one connecting line from an object.
If you think along the lines of Microsoft Visio where you got shapes and then you can connect them with connector lines so that you end up with linked shapes, but each object can be moved around and the lines will automatically follow.
The Dynamic text box will then follow the activities:
Square1 linked to Circle1, Cirlce2, Square1 linked to Circle3, Square2.
If the linking line where to be deleted from say the second link the text would read:
Square1 linked to Circle1, Cirlce2, Square1, Circle3, Square2.
If then Circle1 where to have a link drawn to Circle2:
Square1 linked to Circle1, Circle1 linked to Circle2, Square1, Circle3, Square2.
I guess the snap connector line and the dynamic text would be more difficult???
I suppose you need to start the process off from somewhere may be there is a linkage icon on the screen and when clicked listens for the first click on an instance/object (This then creates the centre snap line start point) then listens for the second click on another instance/object (This then completes the linkage and snaps to the centre of the second instance/object).
Could be a dotted line with arrow at the end of the linkage ie the second click.
The link will only be drawn if it comes in contact with an object hittest ???
The link cannot be drawn to istelf.
What do you think about attempting this one, would take time I am sure ?
All this is for my purposes only and is really appreciated…
See you soon…