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 - Implement Active property for the StartLine and EndLine ColorLines in the ColorBand tool
Summary: Implement Active property for the StartLine and EndLine ColorLines in the Col...
Status: RESOLVED FIXED
Alias: None
Product: ActiveX TeeChart
Classification: Unclassified
Component: Chart Tools (show other bugs)
Version: TeeChart Pro Activex Control v2014 v2014.0.0.1 Release
Hardware: PC Windows
: Highest enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-10 08:21 EDT by yeray alonso
Modified: 2015-03-25 05:40 EDT (History)
0 users

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 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 = ""