ChartTool_TL.Lines.AddLine() // does not show up
Posted: Mon Jan 27, 2014 3:14 pm
Hi,
I have added the Tool "TDrawLineTool" and draw lines into my chart. Works fine
Now I want to draw a parallel line to an existing line.
I do not know, if it is the best choice, but I tried by:
my problem: I cannot see my new lines.
As the count of the lines increases, I think, they are there, but not visible.
I tried to "add" other lines as well. They increase the line count as well, but I cannot see them neither.
What can I do?
I tried repaint and refresh without success.
Cheryll
I have added the Tool "TDrawLineTool" and draw lines into my chart. Works fine
Now I want to draw a parallel line to an existing line.
I do not know, if it is the best choice, but I tried by:
Code: Select all
myFunction;
Var x, x1, y, y1: double;
begin
x:=trunc(ChartTool_TL.Selected.X0); x1:=trunc(ChartTool_TL.Selected.X1);
y:=ChartTool_TL.Selected.y0; y1:=ChartTool_TL.Selected.Y1;
ChartTool_TL.Lines.AddLine(x + 2, x1 + 2, y*1.0001, y1*1.0001);
end;
As the count of the lines increases, I think, they are there, but not visible.
I tried to "add" other lines as well. They increase the line count as well, but I cannot see them neither.
What can I do?
I tried repaint and refresh without success.
Cheryll