TeePreviewPanel and selecting chart to change margins
TeePreviewPanel and selecting chart to change margins
I have a TeePreviewPanel with 2 charts. Is there a way to change which chart gets the focus for margin manipulation? I am using Delphi 2005 and TeeChart Pro V7.04.
Hi,
yes, you can use the following code :
yes, you can use the following code :
Code: Select all
procedure TForm1.Chart1Click(Sender: TObject);
begin
with TeePreviewPanel1 do
begin
Panels.clear;
Panels.Add(Chart1);
Panels.Add(Chart2);
Refresh;
end;
end;
procedure TForm1.Chart2Click(Sender: TObject);
begin
with TeePreviewPanel1 do
begin
Panels.clear;
Panels.Add(Chart2);
Panels.Add(Chart1);
Refresh;
end;
end;
Pep Jorge
http://support.steema.com
http://support.steema.com