![]() | Steema Issues DatabaseNote: 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. |
Summary: | If you remove the SeriesStats tool it doesn't remove the extra Series that is added in chart. | ||
---|---|---|---|
Product: | VCL TeeChart | Reporter: | sandra pazos <sandra> |
Component: | Tools | Assignee: | Steema Issue Manager <issuemanager> |
Status: | IN_PROGRESS --- | ||
Severity: | normal | CC: | david |
Priority: | --- | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows | ||
Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: |
Description
sandra pazos
2013-11-18 08:42:35 EST
This was made on purpose. The tool is just an easy way (shortcut) to add basic functions to a chart. Added series can be easily removed using the editor. I understand you, but I think, if you remove the Statistics tool, is logical, extra series were added in the chart, are removed, too, so, if the tool doesn't exist, don't make sense extra series exist. The problem is, you use the tool to add series, then you modify the series properties, etc. And then you remove the tool thinking it will not remove anything, and suddenly the series are removed. I think the best solution we can do is to ask the developer a Yes/No confirmation to remove or not the series, when removing the tool. But what to do if removing the tool by code ? (ie: ChartTool123.Free or ChartTool123.ParentChart:=nil) (In reply to sandra pazos from comment #2) > I understand you, but I think, if you remove the Statistics tool, is > logical, extra series were added in the chart, are removed, too, so, if the > tool doesn't exist, don't make sense extra series exist. I've added a new method that removes all series created using the Stats tool editor dialog: ChartTool1.FreeAllSeries; And a button at Stats editor dialog ("Remove All") that calls that method. Its a pending decision to call this method automatically at tool destroy time. Maybe a new property should be needed to indicate the tool should free all possible created series, something like: ChartTool1.FreeSeriesOnDestroy := True; ChartTool1.Free; |