![]() | 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: | The legend checkboxes are positioned incorrectly when legend alignment, is top or bottom | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | sandra pazos <sandra> |
| Component: | Legend | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | major | CC: | bert.kreisel, nagai, ulrich.brueggemann, yeray |
| Priority: | High | ||
| Version: | 150120 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://teechart.net/directline/viewtopic.php?f=5&p=4668&sid=1835cf6204d743f0e0d33b4dd240a693 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: |
LegendCheckBoxes
test project The test project works not for me. |
||
This was broken in Chart.pas rev 1.93 when improving the Dividing Lines. Now fixed. Found the proposed fix still fails in some circumstances. http://www.teechart.net/support/viewtopic.php?f=3&t=15397 Needs a revision. Created attachment 426 [details]
test project
Attached project to test different situations for the legend.
The test project seems to work fine for all the possibilities. Created attachment 427 [details]
The test project works not for me.
CheckBoxes are only in first column of legend with Position Bottom or Top.
I've just sent you the modified units in the internal sources. These changes will be applied in the next maintenance release. |
Created attachment 358 [details] LegendCheckBoxes The legend checkboxes are positioned incorrectly when legend alignment, is top or bottom. The attached image illustrates the problem. Also, the code below reproduces exactly the problem. uses Series,Chart; var Chart1 :TChart; procedure TForm1.FormCreate(Sender: TObject); begin Chart1 := TChart.Create(Self); Chart1.Parent := Self; Chart1.Align := alClient; Chart1.View3D := False; Chart1.Legend.Alignment := laTop; // Create Series Chart1.AddSeries(TFastLineSeries.Create(Self)); Chart1.AddSeries(TFastLineSeries.Create(Self)); Chart1.AddSeries(TFastLineSeries.Create(Self)); Chart1[0].FillSampleValues(); Chart1[1].FillSampleValues(); Chart1[2].FillSampleValues(); Chart1.Legend.CheckBoxes := True; end;