Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 656

Summary: Method and button at the editor which allows to clone a Chart of SubChart tool.
Product: VCL TeeChart Reporter: pep jorge <pep>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: david
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description pep jorge 2014-03-24 05:12:48 EDT
Method and button at the editor which allows to clone a Chart of SubChart tool.
Comment 1 david berneda 2014-03-24 12:59:32 EDT
Done. Added Clone button and new method, example:

var tmp : TSubChart;
tmp := ChartTool1.Charts.Clone(ChartTool1.Charts[3].Chart);

Clone will duplicate the Chart, Series, Tools, etc and will add this new chart in the collection.

Note: The new chart Name property is set using the editor, but not using the method.

Also the editor will move the new chart a little bit to right and bottom, to make it visible.  

The Charts.Clone method will not alter the new chart position, it will be the same as the original chart.