![]() | 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: | StartLine and EndLine TColorLines in TColorBandTool are disabled by default | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Tools | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | 140512 | ||
| 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: | |
At TeeTools.pas, Function TColorBandTool.NewColorLine:TColorLineTool; begin result:=TColorLineTool.Create(nil); // result.Active:=True; result.DragRepaint:=True; InitColorLine(result); end; |
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: uses Series, TeeTools; procedure TForm1.FormCreate(Sender: TObject); begin Chart1.View3D := False; Chart1.AddSeries(TLineSeries).FillSampleValues; with Chart1.Tools.Add(TColorBandTool) as TColorBandTool do begin Axis := Chart1.Axes.Bottom; StartValue := 5; EndValue := 10; StartLine.Annotation.Text := 'Start'; EndLine.Annotation.Text := 'End'; end; end; You can manually make the TColorLines Active: StartLine.Active:=true; EndLine.Active:=true; But these properties aren't available for TeeChart ActiveX yet (I'll open a new ticket asking for it). So we could activate them by default.