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 1035

Summary: The Pen Style isn't drawn properly in GDI/GDI when it isn't solid.
Product: VCL TeeChart Reporter: sandra pazos <sandra>
Component: CanvasAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major CC: yeray
Priority: Normal    
Version: 140923   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=1&t=14924&p=67912#p67912
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2014-12-10 07:00:10 EST
The Pen Style isn't drawn properly in GDI/GDI when it isn't solid(dash, dashdot...). Also, the length between the segments is too short and the segments isn't drawn clearly. The problem occurs when is used Line and FastLine with a pen width 0 or 1. 
Use the code below to reproduce the problem: 
uses Series, TeCanvas;
var Series1:TLineSeries;
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
  If CheckBox1.Checked then
  Chart1.Canvas := TGDIPlusCanvas.Create
  else
  Chart1.Canvas := TTeeCanvas3D.Create;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D := False;
Series1 := TLineSeries.Create(Self);
Chart1.AddSeries(Series1);
Series1.Add(1,' ');
Series1.Add(1,' ');
Series1.LinePen.Style := psDash;
Series1.LinePen.Width :=0;
Chart1.Axes.Left.Grid.Visible := false;
Chart1.Axes.Bottom.Grid.Visible := false;
CheckBox1.Checked := true;
end;
Comment 1 sandra pazos 2014-12-10 07:12:30 EST
The problem is related by the feature request id265. Here's the link: http://bugs.teechart.net/show_bug.cgi?id=265