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 - The legend checkboxes are positioned incorrectly when legend alignment, is top or bottom
Summary: The legend checkboxes are positioned incorrectly when legend alignment, is to...
Status: RESOLVED WORKSFORME
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Legend (show other bugs)
Version: 150120
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://teechart.net/directline/viewto...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-04 05:31 EST by sandra pazos
Modified: 2015-04-16 07:30 EDT (History)
4 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
LegendCheckBoxes (37.06 KB, image/png)
2014-12-04 05:31 EST, sandra pazos
Details
test project (2.08 KB, application/zip)
2015-04-16 05:15 EDT, yeray alonso
Details
The test project works not for me. (155.68 KB, image/jpeg)
2015-04-16 05:29 EDT, Bert Kreisel
Details

Note You need to log in before you can comment on or make changes to this bug.
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.