Page 1 of 1

Border for a chart

Posted: Mon Nov 29, 2004 4:18 pm
by 8573902
I am generating a series of charts directly from a Delphi (7) program. For one of them, I want the border to be invisible. So, I use Chart.Border.Visible := False;. Then, the left and top border vanishes, but there are still a remant left of the left and bottom one. If I look closely ate the chart with the border in it, it seems that the left and bottom borter is a little bit thicker than the other two, but is not a shadow (I think).

How can I completely remove the border ?

Tom

Posted: Tue Nov 30, 2004 7:35 am
by Marjan
Try the following code:

Code: Select all

Chart1.Border.Visible := False;
Chart1.BevelWidth := 0;

Posted: Tue Nov 30, 2004 8:16 am
by 8573902
Thank you for the suggestion, but the answer is no, that does not work. Setting BevelWidth to zero yields the following error message:

[Error] ProductionUnit.pas(796): Constant expression violates subrange bounds

That value should be in the range 1..MaxInt.

Tom

Posted: Tue Nov 30, 2004 9:10 am
by Marjan
Hi.

Which Teechart version are you using ? If this doesn't work, try setting inner and outer bevel style to bvNone.

Posted: Tue Nov 30, 2004 10:06 am
by 8573902
I am using version 7 for Delphi 7.

Yes, setting BevelInner and BevelOuter to bvNone worked. So thank you. I had to add Controls to the uses list though. But that was trivial.

Tom

Posted: Tue Nov 30, 2004 10:08 am
by 8573902
Actually, setting BevelOuter to bvNone was sufficient.

Tom