Language

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

Language

Post by Geerten » Wed Feb 16, 2011 3:40 pm

Hi,

Can anyone show me how to set the language for every Teechart dialog/form at runtime? I found how to do it at design-time, but I want to do it at runtime.

Cheers,
Geerten

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

Re: Language

Post by Sandra » Thu Feb 17, 2011 1:03 pm

Hello Geerten,

For change your language runtime, you need add in your project TeeLanguage class (Language=English for example) you want as do in next example:

Code: Select all

uses EditChar, TeeCatalan,Series;
procedure TForm1.FormCreate(Sender: TObject);
var Series1:TLineSeries;
begin
Series1 := TLineSeries.Create(self);
Chart1.AddSeries(Series1);
Series1.FillSampleValues(10);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  TeeSetCatalan;
  EditChart(self,Chart1);
end;
And also you can find more examples in Demo project concretely in All Features\Miscellaneous\Multi-Language

I hope will helps.

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

Geerten
Newbie
Newbie
Posts: 5
Joined: Wed Feb 16, 2011 12:00 am

Re: Language

Post by Geerten » Fri Feb 18, 2011 9:13 am

Thanks, I figured it out now.

Cheers,
Geerten

Post Reply