Hi!
(I am new to Delphi, but still trying )
I am trying to draw a 'tree-like' directed graph with TSimpleGraph. The graph consists of nodes and links between the nodes in a 'collect-like' fashion.
What i mean is that i draw a link from a 'parent' node to another, horizontal link below it. Then i loop through the nodes that are supposed to be below that link and for each node that should, will get a link from the horizontal link to itself.
And i though of using the 'SimpleGraph.FindObjectAt(X,Y, [LookAfter:TGraphObject])' function to find the horizontal link again since i re-use the variable for it to draw another horizontal link elsewhere before i draw the nodes for the first horizontal link.
The problem is that the function gives me only 'nil' as an answer, eventhough i know that there should be a Link in the point i use the function on. (The horizontal links are always at the same height from the nodes)
So what am i doing wrong? Please give me some help, i am all new to Delphi too.