![]() | Steema Issues DatabaseNote: 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. |
| Summary: | ChartPen.Width not being cached properly | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | narcís calvet <narcis> |
| Component: | Canvas | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | chris |
| Priority: | --- | ||
| Version: | TeeChart.NET 2014 4.1.2014.12154 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Code below doesn't change LinePen.Width on the chart with Utils.UseCaches = true, which is the default option. Looks like ChartPen.Width is not being cached correctly. public Form1() { InitializeComponent(); InitializeChart(); } private Steema.TeeChart.Styles.Line line1; private void InitializeChart() { //Steema.TeeChart.Utils.UseCaches = false; tChart1.Dock = DockStyle.Fill; tChart1.Aspect.View3D = false; line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart); line1.FillSampleValues(); tChart1.Resize += tChart1_Resize; } void tChart1_Resize(object sender, EventArgs e) { int w = tChart1.Width; int h = tChart1.Height; if ((w > 500) && (h > 400)) { line1.LinePen.Width = 5; } else { line1.LinePen.Width = 2; } }