![]() | 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: | "Out of range" error adding an tcSeriesAnimation Tool | ||
|---|---|---|---|
| Product: | ActiveX TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Chart Tools | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | marc |
| Priority: | Normal | ||
| Version: | TeeChart Pro Activex Control 2017.0.0.0 Release | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=1&t=16494 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Broken in v2014.0.0.0. Worked fine in v2013.0.1.4 Modified SeriesAnimation Tool to get round 'wakening thread issue'. Example code (VB6): Private Sub Command1_Click() TChart1.Animations.Items(0).asSeriesAnimation.Series = TChart1.SeriesList.Items(0) TChart1.Animations.Items(0).asSeriesAnimation.Play End Sub Private Sub Form_Load() TChart1.Series(0).FillSampleValues TChart1.Animations.Add tcSeriesAnimation TeeCommander1.Chart = TChart1 End Sub |
In VCL this works fine: uses Series, TeeAnimations; procedure TForm1.FormCreate(Sender: TObject); begin Chart1.AddSeries(TBarSeries).FillSampleValues; with Chart1.Tools.Add(TSeriesAnimationTool) as TSeriesAnimationTool do begin Series:=Chart1[0]; Execute; end; end; But in ActiveX this gives an "Argument out of range" error: TChart1.AddSeries scBar TChart1.Series(0).FillSampleValues TChart1.Series(0).ColorEachPoint = True TChart1.Tools.Add tcSeriesAnimation ' <- error running this TChart1.Tools.Items(0).As.Series = TChart1.Series(0)