Page 1 of 1

several TsimpleGraph

PostPosted: January 7th, 2006, 3:04 pm
by sergisan
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.

PostPosted: January 9th, 2006, 6:47 pm
by sergisan
Nobody can give a help ?

Kambiz ? Elias ?


Thanks

PostPosted: January 9th, 2006, 7:18 pm
by elias
Had you added the coordinates of the simplegraph window?
Code: Select all
ASimpleGraph. Left:=100;
//...and .Top, and .Width, and .Height

or....
Code: Select all
ASimpleGraph.Align := alClient;

You won't see it if you didn´t

¿?

PostPosted: January 12th, 2006, 10:57 am
by Kambiz
Sorry, I was not online for a couple of days.

Besides what elias said, it's possible the parent controls are incorrect.