Page 1 of 1

About TSimpleGraph

PostPosted: August 12th, 2008, 8:18 am
by BlackJack
Hello all,I hava some questions about TSimpleGraph.
1. If i want creat a new TGraphObject,which methods should i use?
for e.g
i want assign the value of Text about TGraphObject,
Code: Select all
var
    MyObject  : TGraphObject;
...
    MyObject.Text :='first';

i don't know how to do next?

2.i want creat a new TGraphObject which has a background,what shall i do

please help,thanks.

PostPosted: August 12th, 2008, 12:01 pm
by Kambiz
First you have to insert a node (or link) in the graph, and then modify its properties as you wish.

Take a look at InsertNode and InsertLink methods.

PostPosted: August 13th, 2008, 1:20 am
by BlackJack
Thank you,Kanmbiz.
I know how to do it by your help.