TFastLine segments

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

TFastLine segments

Post by bdw » Thu Dec 08, 2016 4:28 am

Hi,

Is it possible to draw line segments which aren't connected.

For example connect 1,1 to 2,2 then have another segment 3,3 to 4,4 with no connection between 2,2 to 3,3 ?

Regards, Brett.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TFastLine segments

Post by Yeray » Mon Dec 12, 2016 9:35 am

Hello,

You could play with Null Points. Note a line segment is not drawn if the origin or the destination points are null.
So, in the case you described, you could add a null point at x=2.5 and the segments from x=2 to 2.5 and from x=2.5 to 3 won't be drawn:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1.AddXY(1,1);
  Series1.AddXY(2,2);
  Series1.AddXY(3,3);
  Series1.AddXY(4,4);
  Series1.AddNullXY(2.5,0);
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

Re: TFastLine segments

Post by bdw » Mon Dec 19, 2016 11:27 pm

As always thanks Yeray, worked like a charm once I figured the DoNotPaint flag was also required when doing it manually.

Post Reply