![]() | 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: | Modifying the Legend.Items[i].Text combined with a TLegendScrollBar gives infinite items in the legend | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Tools | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | Low | ||
| Version: | 140923 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?p=68014#p68014 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Run the following code and scroll the legend. After showing the correct items, the legend continues allowing you to scroll showing empty strings/items. uses Series, TeeLegendScrollBar; procedure TForm1.FormCreate(Sender: TObject); var i: Integer; begin Chart1.View3D:=false; Chart1.Tools.Add(TLegendScrollBar); for i:=0 to 15 do Chart1.AddSeries(TLineSeries).FillSampleValues; for i:=0 to Chart1.SeriesCount-1 do Chart1.Legend[i].Text:='MySeries'+IntToStr(i+1); end;