Page 1 of 1

TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Thu Nov 21, 2013 8:58 am
by 8753501
Greetings,

The latest TeeChart Pro ActiveX v2013 release is available for download now from the Steema web.

TeeChart Pro ActiveX customers with valid subscription may download the version via the customer download page.

Release notes for the build may be viewed at the version info page.

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Sat Feb 22, 2014 5:14 pm
by 16668492
Hi,
I recently bought the activex teechart because I needed it to be transparent but I can not manage to make it so. :cry:
Does this version solves this?
Can you help me?
Thanks.

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Mon Feb 24, 2014 8:05 am
by narcis
Hi Alberto,

Which specific chart element do you need to be transparent?

Thanks in advance.

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Mon Feb 24, 2014 11:49 am
by 16668492
Hello Narcís,
I need line (and fast line) panel (and rest of the graph except axis, numbers, etc. and lines) to be transparent.
Thanks in advance.

Best Regards,
Alberto

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Mon Feb 24, 2014 1:53 pm
by narcis
Hi Alberto,

In that case you should do something as in the example Yeray posted here. It's a Delphi example but the same applies to TeeChart ActiveX. Bear in mind that TeeChart Pro ActiveX is a COM wrapper of TeeChart Pro VCL. Example sources:

Code: Select all

unit UTranspChart;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, TeeProcs, TeEngine, Chart, jpeg, TeeSurfa,
  TeeMapSeries, Series, ImaPoint, TeCanvas, TeeGDIPlus;


type
  TForm1 = class(TForm)
    Image1: TImage;
    Chart1: TChart;
    Series1: TFastLineSeries;
    procedure FormCreate(Sender: TObject);
    procedure Chart1BeforeDrawChart(Sender: TObject);
  private
    { Private declarations }
    Back : TBitmap;
  public
    { Public declarations }
  end;

var
  Form1             : TForm1;
implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Color:=clNone;

  Chart1.Walls.Back.Visible:=False;
  Series1.FillSampleValues;
end;

procedure TForm1.Chart1BeforeDrawChart(Sender: TObject);
begin
  if not Assigned(Back) then
  begin
    Back:=TBitmap.Create;
    Back.Width:=Chart1.Width;
    Back.Height:=Chart1.Height;

    Back.Canvas.CopyRect(Chart1.ClientRect,Canvas,Chart1.BoundsRect);
  end;

  if Chart1.Color=clNone then
     Chart1.Canvas.Draw(0,0,Back);
end;

end.

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Mon Feb 24, 2014 1:53 pm
by narcis
Hi Alberto,

In that case you should do something as in the example Yeray posted here. It's a Delphi example but the same applies to TeeChart ActiveX. Bear in mind that TeeChart Pro ActiveX is a COM wrapper of TeeChart Pro VCL. Example sources:

Code: Select all

unit UTranspChart;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, TeeProcs, TeEngine, Chart, jpeg, TeeSurfa,
  TeeMapSeries, Series, ImaPoint, TeCanvas, TeeGDIPlus;


type
  TForm1 = class(TForm)
    Image1: TImage;
    Chart1: TChart;
    Series1: TFastLineSeries;
    procedure FormCreate(Sender: TObject);
    procedure Chart1BeforeDrawChart(Sender: TObject);
  private
    { Private declarations }
    Back : TBitmap;
  public
    { Public declarations }
  end;

var
  Form1             : TForm1;
implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Color:=clNone;

  Chart1.Walls.Back.Visible:=False;
  Series1.FillSampleValues;
end;

procedure TForm1.Chart1BeforeDrawChart(Sender: TObject);
begin
  if not Assigned(Back) then
  begin
    Back:=TBitmap.Create;
    Back.Width:=Chart1.Width;
    Back.Height:=Chart1.Height;

    Back.Canvas.CopyRect(Chart1.ClientRect,Canvas,Chart1.BoundsRect);
  end;

  if Chart1.Color=clNone then
     Chart1.Canvas.Draw(0,0,Back);
end;

end.

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Mon Feb 24, 2014 3:09 pm
by 16668492
Hi Narcís,
Thanks very much for your help.
Nevertheless, I program in VB 2010 and sorry for been so nuisance but can you tell me how to do that in this language.
I can not access to components as easy as in Delphi probably can be done.
Thanks in advance and best Regards
Alberto

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Wed Feb 26, 2014 11:11 am
by yeray
Hello Alberto,

I've been trying to translate that Delphi example to VB 2010 but I haven't achieved it.
I'm afraid we haven't found a way to make the container transparent in ActiveX.

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Wed Feb 26, 2014 2:20 pm
by 16668492
Hello Yeray,
I am a bit upset for this, as I bought the activex with the expectation to get these graphics transparent.
I would like to know if I can get the activex source so that I can change it myself.

Regards,
Alberto

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Thu Feb 27, 2014 3:20 pm
by narcis
Hello Alberto,

After some more investigation I found the equivalent VB 2010 project of the Delphi project I pointed you at. It can be downloaded here: http://steema.com/files/public/Transpar ... XChart.zip

The key was finding the exact properties that match the VCL/ActiveX ones and also some type conversions from .NET to ActiveX. One interesting article on the subject is this: http://blogs.msdn.com/b/andreww/archive ... image.aspx

Re: TeeChart Pro ActiveX v2013 release Build 2013.0.1.4

Posted: Thu Feb 27, 2014 3:25 pm
by 16668492
Dear Narcís,
Thanks so much for your answer. I will try it and let you know.
Best Regards,

Alberto