[DrawLines] How to delete one line ?
Posted: Mon Feb 20, 2006 10:24 am
The question is the the subject : when I draw many lines with the drawlines tool, is it possible to delete juste one line ?
Steema Software - Customer Support Forums
http://216.92.101.67/support/
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
ChartTool1.Lines[0].Destroy;
Chart1.Refresh;
end;
Code: Select all
procedure TForm1.Chart1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if ((ChartTool1.Clicked(X,Y) <> nil) and not ChartTool1.EnableDraw) then
begin
ChartTool1.Clicked(X,Y).Destroy;
Chart1.Refresh;
end;
end;