several TsimpleGraph

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

several TsimpleGraph

Postby sergisan » January 7th, 2006, 3:04 pm

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.
sergisan
Active Member
Active Member
 
Posts: 20
Joined: October 19th, 2005, 8:30 pm

Postby sergisan » January 9th, 2006, 6:47 pm

Nobody can give a help ?

Kambiz ? Elias ?


Thanks
sergisan
Active Member
Active Member
 
Posts: 20
Joined: October 19th, 2005, 8:30 pm

Postby elias » January 9th, 2006, 7:18 pm

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

¿?
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain

Postby Kambiz » January 12th, 2006, 10:57 am

Sorry, I was not online for a couple of days.

Besides what elias said, it's possible the parent controls are incorrect.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2405
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron