Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2001, 08:13 PM
genc_ymeri genc_ymeri is offline
Junior Member
 
Join Date: May 2001
Posts: 5
Default How to clone a given Chart ?

I have a chart with several series in the main form. I want to clone this chart to other open forms without adding & formating the series of the new charts from the beginning .......

Thnx
PS:
I don't mean to copy it in the clipboard !

gymeri@qts.com
Reply With Quote
  #2  
Old 05-22-2001, 04:34 AM
b-w-d.net b-w-d.net is offline
Senior Member
 
Join Date: May 2001
Posts: 1,122
Default RE: How to clone a given Chart ?

Take the series and save it into a document , then find how the series is formatted and build a procedure to extract the various sections of information from the file.


Hope that helps, see you arround, bye!

----=.-=LeGiOn=-.=----
legion@b-w-d.net
Reply With Quote
  #3  
Old 05-22-2001, 07:52 AM
genc_ymeri genc_ymeri is offline
Junior Member
 
Join Date: May 2001
Posts: 5
Default RE: How to clone a given Chart ?

Actually I got it an easier way.
e.g we want to copy DBChat1 to DBChart2;

1. First we copy the properties of DbChart1 to DBChart2;
DBChart2.Assign(DBchart1);

2. Create & add as much series are in DBCHart1 to DBChart2 through {

for i := 0 to DBChart1.Seriescount -1 do
begin bla,bla}
NS := TPointChart.Create(Self);
DBChart1.AddSeries(NS);
NS.parentChart(dbchart2);
NS.assign(DBchart1.Series[i]);
.......
end;

That is it.

Thanks any way.

PS:
I may have done a typo error just because I may have forgot the right name in declaring.......
Reply With Quote
  #4  
Old 05-22-2001, 11:46 AM
b-w-d.net b-w-d.net is offline
Senior Member
 
Join Date: May 2001
Posts: 1,122
Default RE: RE: How to clone a given Chart ?

AGG! OH MY GOODNESS! hehe, i was under the impression you had charts in different executables! hehe, dont ask why i thought that, i was at school so i was not really thinking straight [comeon... thats what people do at school! we sleep and get confused!]

well, sorry i couldnt have helped before you worked it out hehe, sorry, bye

----=.-=LeGiOn=-.=----
legion@b-w-d.net
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 01:05 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.