Set OnZoom in Runtime
Posted: Fri Aug 29, 2008 12:32 pm
Hi!
How can I set (change) Chart.OnZoom in runtime?
How can I set (change) Chart.OnZoom in runtime?
Steema Software - Customer Support Forums
http://216.92.101.67/support/
Code: Select all
procedure TFormMain.ChartZoom(Sender: TObject);
begin
zoomOff;
end;
b. Use 2 OnZoom event implementations:procedure TForm1.Chart1Zoom(Sender: TObject);
begin
if condition then
zoomOff
else
zoomOff2
end;
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.OnZoom:=Chart1Zoom;
//Your code here
Chart1.OnZoom:=Chart1Zoom2;
end;
procedure TForm1.Chart1Zoom(Sender: TObject);
begin
zoomOff;
end;
procedure TForm1.Chart1Zoom2(Sender: TObject);
begin
zoomOff2;
end;