SimpleGraph and Text Out of the Node

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

SimpleGraph and Text Out of the Node

Postby onlytk » November 8th, 2005, 6:28 pm

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
onlytk
Active Member
Active Member
 
Posts: 9
Joined: October 30th, 2005, 1:46 am

Postby elias » November 8th, 2005, 6:54 pm

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.
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron