Page 1 of 1

Cyan color

Posted: Tue Sep 15, 2015 4:26 pm
by 16573450
Hi,
I do have a Chart, on which I draw a time series.
if the bottom axis grid overlap with the vertical red line drawn at each new day of the horizontal axis, I get a vertical cyan line.
Is there some approach I could use here to fix this issue, which is illustrated on the attached snapshot..
in advance, Many thanks for your valuable help here

Re: Cyan color

Posted: Wed Sep 16, 2015 12:07 pm
by yeray
Hello,

I'm not sure to understand how are you drawing the vertical red line.
Could you please arrange a simple example project we can run as-is to reproduce the problem?
Thanks in advance.

Re: Cyan color

Posted: Wed Sep 16, 2015 1:39 pm
by 16573450
Hi, I will try to prepare some standalone example ASAP, in the meanwhile, maybe the attached screen snapshot could help to see the issue, I am trying to describe here.
Basically as you can see it, if the red vertical line overlaps the grid vertical line (dashed or not), you get some kind of blending of the two colors.
Is there a way to avoid that ? Is there some known issue about it?
Basically, I am using it like:
Canvas:= TGDIPlusCanvas.Create;
// see http://www.teechart.net/support/viewtop ... =3&t=15740
TGDIPlusCanvas(Canvas).AntiAliasText:=gpfDefault;
TGDIPlusCanvas(Canvas).AntiAlias:= False;
LeftAxis.Axis.Width:= 3;
View3D := False;
TopAxis.LabelStyle := talNone;
TopAxis.Axis.Width := 1;
TopAxis.LabelsSize := 7;
LeftAxis.Automatic := False;
LeftAxis.MinimumOffset := 0;
LeftAxis.MaximumOffset := 0;
LeftAxis.Grid.Color:= clGray;
LeftAxis.Grid.Style:= psDash;
LeftAxis.Grid.SmallSpace:= 1;
LeftAxis.GridCentered:= True;
BottomAxis.DateTimeFormat := 'dd/mm/yyyy hh:nn';
BottomAxis.LabelsSeparation := 70;
BottomAxis.LabelsSize := 30;
BottomAxis.LabelsFont.Color := clNavy;
BottomAxis.Increment := 60;
BottomAxis.Grid.Color:= clGray;
BottomAxis.Grid.Style:= psDash;
BottomAxis.Grid.SmallSpace:= 1;

Re: Cyan color

Posted: Thu Sep 17, 2015 10:21 am
by yeray
Hello,

I think the issue is that the lines drawn by the TColorLineTool are XOR'd with the background.
You can change this behaviour setting its DragRepaint property to true:

Code: Select all

ColorLine1.DragRepaint:=true;
If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Re: Cyan color

Posted: Fri Sep 25, 2015 1:36 pm
by 16573450
many thanks, your suggestion helped a lot. It works nicely now,
nabil