Page 1 of 1

Language

Posted: Wed Feb 16, 2011 3:40 pm
by 16558579
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

Re: Language

Posted: Thu Feb 17, 2011 1:03 pm
by 10050769
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,

Re: Language

Posted: Fri Feb 18, 2011 9:13 am
by 16558579
Thanks, I figured it out now.

Cheers,
Geerten