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 837

Summary: Implement Active property for the StartLine and EndLine ColorLines in the ColorBand tool
Product: ActiveX TeeChart Reporter: yeray alonso <yeray>
Component: Chart ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Highest    
Version: TeeChart Pro Activex Control v2014 v2014.0.0.1 Release   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=1&t=15054
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-07-10 08:21:37 EDT
StartLine and EndLine TColorLines in TColorBandTool are disabled by default.
This makes the Annotations on them not to be visible even if you set a text for them:

  TChart1.Aspect.View3D = False

  TChart1.AddSeries scLine
  TChart1.Series(0).FillSampleValues
  TChart1.Tools.Add tcColorband
  
  TChart1.Tools.Items(0).asColorband.Axis = TChart1.Axis.Bottom
  TChart1.Tools.Items(0).asColorband.StartValue = 5
  TChart1.Tools.Items(0).asColorband.EndValue = 10
  TChart1.Tools.Items(0).asColorband.StartLine.Annotation.Text = "Start"
  TChart1.Tools.Items(0).asColorband.EndLine.Annotation.Text = "End"

In VCL you can activate the ColorLines as follows:
http://bugs.teechart.net/show_bug.cgi?id=836

But in ActiveX you don't have access to the StartLine and EndLine TColorLines "Active" properties. This "Activate" property is what we should implement in ActiveX:

  TChart1.Tools.Items(0).asColorband.StartLine.Activate = True
  TChart1.Tools.Items(0).asColorband.EndLine.Activate = True
Comment 1 yeray alonso 2015-03-25 05:40:54 EDT
Setting a Text to the Annotations makes them visible without having to activate anything else in TeeChart ActiveX v2015.

Then, if you want to disable an Annotation or a ColorLine you can do it:

  TChart1.Tools.Items(0).asColorband.EndLine.AllowDrag = False
  TChart1.Tools.Items(0).asColorband.EndLine.Pen.Visible = False
  TChart1.Tools.Items(0).asColorband.EndLine.Annotation.Text = ""