A Chart tool calculates a band between tow series.
On "TeeGDIPlus1.Active := false;" this works pretty good but on "TeeGDIPlus1.Active := true" the band has been switched off or to transparent color.
How can I fix this?
GDI+ switched-off Chart Tools
GDI+ switched-off Chart Tools
- Attachments
-
- This pictures show the difference if TeeGDIPlus1.Active is set.
- Picture2.png (5.34 KiB) Viewed 61709 times
-
- Picture1.png (6.03 KiB) Viewed 61669 times
Re: GDI+ switched-off Chart Tools
Hello,
It seems to work fine for me here with the latest version (v2011.03), both running the demo under All features\Welcome !\Tools\Series Band and a simple example application with the following code:
PS: I've moved this topic to the TeeChart\VCL forums.
It seems to work fine for me here with the latest version (v2011.03), both running the demo under All features\Welcome !\Tools\Series Band and a simple example application with the following code:
Code: Select all
uses Series, TeeSeriesBandTool, TeeGDIPlus;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.Canvas:=TGDIPlusCanvas.Create;
Chart1.View3D:=false;
Chart1.AddSeries(TLineSeries).FillSampleValues();
Chart1.AddSeries(TLineSeries).FillSampleValues();
with Chart1.Tools.Add(TSeriesBandTool) as TSeriesBandTool do
begin
Series:=Chart1[0];
Series2:=Chart1[1];
Gradient.Visible:=true;
Transparency:=50;
end;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: GDI+ switched-off Chart Tools
Hello Yeray,
Thank you for your replay!
For me it looks like an inverted tape color.
I've changed the chart.tool.transparence to 50%.
On GDI+=off I can see the expected grey tape.
On GDI+=ON now I see a transparent white tape.
How can I change the tool.tape color on running time?
This might solve my problem?
Best regards!
Matthias
Thank you for your replay!
For me it looks like an inverted tape color.
I've changed the chart.tool.transparence to 50%.
On GDI+=off I can see the expected grey tape.
On GDI+=ON now I see a transparent white tape.
How can I change the tool.tape color on running time?
This might solve my problem?
Best regards!
Matthias
Re: GDI+ switched-off Chart Tools
Hello Matthias,
You can change the tool color with its property Brush.BackColor. But note that this will only be applied when the tool property Gradient.Visible is false.
What TeeChart version are you using?
You can change the tool color with its property Brush.BackColor. But note that this will only be applied when the tool property Gradient.Visible is false.
What TeeChart version are you using?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: GDI+ switched-off Chart Tools
Hello Yeray,
The tip does not work here but I found a solution.
I've set the the tool gradient twice to grey.
This has been "solved" the problem.
I do use the April 11 version.
Regards!
Matthias
The tip does not work here but I found a solution.
I've set the the tool gradient twice to grey.
This has been "solved" the problem.
I do use the April 11 version.
Regards!
Matthias
Re: GDI+ switched-off Chart Tools
Hello mfehr,
Thanks,
Thanks for your information. I am glad that you have solved your problem.The tip does not work here but I found a solution.
I've set the the tool gradient twice to grey.
This has been "solved" the problem.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |