Page 1 of 1

line styles and other styles

Posted: Tue Dec 01, 2015 4:08 am
by 16475383
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.

Re: line styles and other styles

Posted: Tue Dec 01, 2015 9:48 am
by yeray
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.

Re: line styles and other styles

Posted: Tue Dec 01, 2015 1:26 pm
by 16475383
Thanks. The last link is the one I wanted. It would be nice to have such tables easy to find within the TeeChart documentation.

Re: line styles and other styles

Posted: Tue Dec 01, 2015 2:40 pm
by yeray
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.

Re: line styles and other styles

Posted: Tue Dec 01, 2015 9:34 pm
by 16475383
Thanks!