I'd like to generate sine chart. I've used this http://www.teechart.net/docs/teechart/vclfmx/lib/html/TCustomTeeFunction.html However it is added at design time. How to use that TCustomTee function only after clicking at Button during runtime?
CodePudding user response:
Every Function in TeeChart is assigned to a Series. Then, you can Activate/Deactivate that Series when you want.
procedure TForm1.FormCreate(Sender: TObject);
begin
Series2.Active:=False;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
Series2.Active:=True;
end;