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 1030

Summary: The legend checkboxes are positioned incorrectly when legend alignment, is top or bottom
Product: VCL TeeChart Reporter: sandra pazos <sandra>
Component: LegendAssignee: 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.

Description sandra pazos 2014-12-04 05:31:30 EST
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;
Comment 1 yeray alonso 2015-01-27 07:20:56 EST
This was broken in Chart.pas rev 1.93 when improving the Dividing Lines.
Now fixed.
Comment 2 yeray alonso 2015-02-09 08:42:24 EST
Found the proposed fix still fails in some circumstances.
http://www.teechart.net/support/viewtopic.php?f=3&t=15397

Needs a revision.
Comment 3 yeray alonso 2015-04-16 05:15:25 EDT
Created attachment 426 [details]
test project

Attached project to test different situations for the legend.
Comment 4 yeray alonso 2015-04-16 05:16:33 EDT
The test project seems to work fine for all the possibilities.
Comment 5 Bert Kreisel 2015-04-16 05:29:02 EDT
Created attachment 427 [details]
The test project works not for me.

CheckBoxes are only in first column of legend with Position Bottom or Top.
Comment 6 yeray alonso 2015-04-16 07:30:41 EDT
I've just sent you the modified units in the internal sources.
These changes will be applied in the next maintenance release.