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 1580 - In 3D vector demo example, the pen editor doesn't work as expected
Summary: In 3D vector demo example, the pen editor doesn't work as expected
Status: RESOLVED NOTABUG
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Examples Demos (show other bugs)
Version: TeeChart for .Net 4.1.2016.05125
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://teechart.net/directline/viewto...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-14 10:31 EDT by sandra pazos
Modified: 2016-08-30 09:19 EDT (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sandra pazos 2016-07-14 10:31:16 EDT
In 3D vector demo example, the pen editor doesn't work as expected. Basically, if clicking the Pen button, changing the pen color and clicking OK, nothing changes. To check the problem you should only go to All Features\Welcome !\Chart styles\Extended\3D Vector
Comment 1 christopher ireland 2016-08-30 09:19:51 EDT
This is by design. When a Series element's color is controlled by the Series.Color property, then neither that Series's Brush nor Pen can alter it. So to change the color of the Vector3D series:

    private void button4_Click(object sender, EventArgs e)
    {
      series.UseColorRange = false;
      series.Color = Color.Red;
    }

You can see this logic working in the Line series, e.g.

    Line series;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      series = new Line(tChart1.Chart);
      series.FillSampleValues();

    }

    private void button4_Click(object sender, EventArgs e)
    {
      series.LinePen.Color = Color.Red;
    }