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 - [TV52016065] In GDIPlus the psDash pen style looks smaller than in GDI. In .NET y...
Summary: [TV52016065] In GDIPlus the psDash pen style looks smaller than in GDI. In .N...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Canvas (show other bugs)
Version: unspecified
Hardware: All All
: High major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 13:32 EST by yeray alonso
Modified: 2015-05-15 04:34 EDT (History)
2 users (show)

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


Attachments
DashedLine GDIPlus (2.22 KB, application/x-zip-compressed)
2014-12-10 07:07 EST, sandra pazos
Details

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