Shape Series depens on calling sequence
Posted: Fri Apr 13, 2012 5:25 pm
// This draws a correct shape
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.Clear;
Chart1.LeftAxis.SetMinMax( 0.0, 100.0 );
Chart1.BottomAxis.SetMinMax( 0.0, 100.0 );
Series1.X1 := 60;
Series1.Y1 := 50;
Series1.X0 := 20;
Series1.Y0 := 30;
end;
// Different sequence , draws an incorrect shape, see attached images
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.Clear;
Chart1.LeftAxis.SetMinMax( 0.0, 100.0 );
Chart1.BottomAxis.SetMinMax( 0.0, 100.0 );
Series1.X0 := 20;
Series1.Y0 := 30;
Series1.X1 := 60;
Series1.Y1 := 50;
end;
I use the shape series for reason that the rectangle tool does not size with zoom, which i need.
The shape series does size, but a shape is not movable or sizable with the mouse, which i need too.
Is there another way to honor both requirements ?
Regards
Gerhard
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.Clear;
Chart1.LeftAxis.SetMinMax( 0.0, 100.0 );
Chart1.BottomAxis.SetMinMax( 0.0, 100.0 );
Series1.X1 := 60;
Series1.Y1 := 50;
Series1.X0 := 20;
Series1.Y0 := 30;
end;
// Different sequence , draws an incorrect shape, see attached images
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.Clear;
Chart1.LeftAxis.SetMinMax( 0.0, 100.0 );
Chart1.BottomAxis.SetMinMax( 0.0, 100.0 );
Series1.X0 := 20;
Series1.Y0 := 30;
Series1.X1 := 60;
Series1.Y1 := 50;
end;
I use the shape series for reason that the rectangle tool does not size with zoom, which i need.
The shape series does size, but a shape is not movable or sizable with the mouse, which i need too.
Is there another way to honor both requirements ?
Regards
Gerhard