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 265

Summary: [TV52016065] In GDIPlus the psDash pen style looks smaller than in GDI. In .NET y...
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: CanvasAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major CC: sandra, yeray
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: DashedLine GDIPlus

Description yeray alonso 2013-11-20 10:35:22 EST
In GDIPlus the psDash pen style looks smaller than in GDI.
In .NET you can customize the line pen as follows:
            tChart1.Aspect.View3D = false;
            Line line1 = new Line(tChart1.Chart);
            line1.FillSampleValues(5);
            line1.LinePen.DashPattern = new float[2] { 10, 5 };
            line1.LinePen.Style = System.Drawing.Drawing2D.DashStyle.Custom;
In VCL I haven't found a way to do it easily. But I've found this:
http://www.delphidabbler.com/tips/143
So we could add a custom style where the Pattern and the DashLength could be configurable.
See the example attached. [created:2012-03-02T13:32:36.000+01:00 reported by:yeray@steema.com reported in version:2011.04.41118 (TeeChart VCL)]
Comment 1 sandra pazos 2014-12-10 07:07:44 EST
Created attachment 360 [details]
DashedLine GDIPlus