Page 1 of 1

GDI+ switched-off Chart Tools

Posted: Sat Aug 13, 2011 10:51 am
by 16558880
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?

Re: GDI+ switched-off Chart Tools

Posted: Tue Aug 16, 2011 8:03 am
by yeray
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:

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;
PS: I've moved this topic to the TeeChart\VCL forums.

Re: GDI+ switched-off Chart Tools

Posted: Wed Aug 24, 2011 1:48 pm
by 16558880
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

Re: GDI+ switched-off Chart Tools

Posted: Fri Aug 26, 2011 3:39 pm
by yeray
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?

Re: GDI+ switched-off Chart Tools

Posted: Sat Aug 27, 2011 7:33 pm
by 16558880
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

Re: GDI+ switched-off Chart Tools

Posted: Wed Sep 07, 2011 9:06 am
by 10050769
Hello mfehr,
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 for your information. I am glad that you have solved your problem.

Thanks,