Page 1 of 1

SimpleGraph and Text Out of the Node

PostPosted: November 8th, 2005, 6:28 pm
by onlytk
Hello everybody, it's possible to put the TEXT out of the node?, i'm doing my project and i have to draw vertexes and lines interconnected one to one, and i have to put a name in every vertex, it's possible using SimpleGraph? and is so, what i have to do.

Another question is, i wanna draw only vertex, i'm using triangles for that, but i wanna draw that with a same size little if is possible, i need help, please help me.

cheers

PostPosted: November 8th, 2005, 6:54 pm
by elias
Very fast
Well, I think the thing is using a new TextRect in TGraphNode.DrawText; if you don“t see it, put this sentence:
Code: Select all
canvas.Rectangle(textRect);

at the start of the procedure to see how is that TextRect i'm talking about.