GDI+ switched-off Chart Tools

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mfehr
Newbie
Newbie
Posts: 5
Joined: Wed Mar 30, 2011 12:00 am

GDI+ switched-off Chart Tools

Post by mfehr » Sat Aug 13, 2011 10:51 am

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?
Attachments
Picture2.png
This pictures show the difference if TeeGDIPlus1.Active is set.
Picture2.png (5.34 KiB) Viewed 55939 times
Picture1.png
Picture1.png (6.03 KiB) Viewed 55899 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: GDI+ switched-off Chart Tools

Post by Yeray » Tue Aug 16, 2011 8:03 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

mfehr
Newbie
Newbie
Posts: 5
Joined: Wed Mar 30, 2011 12:00 am

Re: GDI+ switched-off Chart Tools

Post by mfehr » Wed Aug 24, 2011 1:48 pm

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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: GDI+ switched-off Chart Tools

Post by Yeray » Fri Aug 26, 2011 3:39 pm

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

mfehr
Newbie
Newbie
Posts: 5
Joined: Wed Mar 30, 2011 12:00 am

Re: GDI+ switched-off Chart Tools

Post by mfehr » Sat Aug 27, 2011 7:33 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: GDI+ switched-off Chart Tools

Post by Sandra » Wed Sep 07, 2011 9:06 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply