Hi all,
I need to use severall Tsimpegraph components in different tabsheets. But this need to de done at runtime, which is the way to correctly do this ?
some thing like this:
var
Graphs : array[1..n] of TsimpleGraph;
//...and when needed ...
Graph[i] := TsimpleGraph.Create(self);
//.. now I must assign it to a tabsheet
Graph[i].parent := OneTabsheet;
// asign events
Graph[i].OnObjectInsert := whatever
//use it
// free
Graph[i].Free;
is it ok ?
The problem is the tsimpleGraph doesnot appear in TheTabsheet;
Is it the correct way to free the Graph ? must I free every node inside before freeing it ?
Thank you for help.
Sergi.