line styles and other styles

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
fjrohlf
Newbie
Newbie
Posts: 33
Joined: Mon Sep 07, 2015 12:00 am

line styles and other styles

Post by fjrohlf » Tue Dec 01, 2015 4:08 am

Is there a convenient table somewhere in the documentation that lists the possible styles that one can use for lines (such as arrows)? Dotted, dashed, etc. I would assume but i cannot find a reference. I did find a list of the possible pointer styles.

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

Re: line styles and other styles

Post by Yeray » Tue Dec 01, 2015 9:48 am

Hello,

The TLineSeries has a LinePen property that is a TChartPen:
http://www.teechart.net/docs/teechart/v ... nePen.html

TChartPen inherits from TPen.
TPen has a Style property that is a TPenStyle. You can see a list of TPenStyles there.
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

fjrohlf
Newbie
Newbie
Posts: 33
Joined: Mon Sep 07, 2015 12:00 am

Re: line styles and other styles

Post by fjrohlf » Tue Dec 01, 2015 1:26 pm

Thanks. The last link is the one I wanted. It would be nice to have such tables easy to find within the TeeChart documentation.

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

Re: line styles and other styles

Post by Yeray » Tue Dec 01, 2015 2:40 pm

Hello,
fjrohlf wrote:Thanks. The last link is the one I wanted. It would be nice to have such tables easy to find within the TeeChart documentation.
The rest of the post was trying to explain why it's where it is, because it is a property of a class in Embarcadero's framework.

Two alternatives are, when coding:

Code: Select all

  line1.LinePen.Style //considering line1 is an instance of the TLineSeries class
1. Pressing F1 when the cursor is over the "Style" word should open the Help program shipped with the IDE with the page for the Style property open. Then, you could click on the TPenStyle class to see the values supported.

2. Pressing Ctrl+Click on the "Style" word should send you to the (Vcl.)Graphics.pas unit framework where says:

Code: Select all

property Style: TPenStyle read GetStyle write SetStyle default psSolid;
Then you could Ctrl+Click on the "TPenStyle" world to jump to the definition of that type.
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

fjrohlf
Newbie
Newbie
Posts: 33
Joined: Mon Sep 07, 2015 12:00 am

Re: line styles and other styles

Post by fjrohlf » Tue Dec 01, 2015 9:34 pm

Thanks!

Post Reply