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 805

Summary: THighLowSeries HighBrush and LowBrush Styles not correctly serialized when bsSolid
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major    
Priority: High    
Version: 140512   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14993
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-06-18 08:54:22 EDT
Create a new project.
Add a TChart
Open the editor and add a THighLowSeries
Close the editor. The series is filled.
Go to "View as text". It looks as follows:

    object Series1: THighLowSeries
      HighValues.Name = 'High'
      HighValues.Order = loNone
      LowValues.Name = 'Low'
      LowValues.Order = loNone
      XValues.Name = 'X'
      XValues.Order = loAscending
      LowBrush.Style = bsClear
    end

Go back to "View as Form". The series fill has been lost!
If you go to "View as text" again, you see this:

    object Series1: THighLowSeries
      HighValues.Name = 'High'
      HighValues.Order = loNone
      LowValues.Name = 'Low'
      LowValues.Order = loNone
      Pen.Color = clDefault
      XValues.Name = 'X'
      XValues.Order = loAscending
      HighBrush.Style = bsClear
      LowBrush.Style = bsClear
    end

Then, back to the form view, if I open the editor, I uncheck the Transparent checkbox for both High and Low Brushes, and I go back to the text view of the form, the HighBrush.Style and LowBrush.Style properties are not saved:

    object Series1: THighLowSeries
      HighValues.Name = 'High'
      HighValues.Order = loNone
      LowValues.Name = 'Low'
      LowValues.Order = loNone
      Pen.Color = clDefault
      XValues.Name = 'X'
      XValues.Order = loAscending
    end

This makes the projects not to remember the state of these properties when they are loaded
Comment 1 yeray alonso 2014-12-12 04:43:18 EST
A workaround would be setting it at runtime:

  Series1.HighBrush.Style:=bsSolid;