Border for a chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Tom
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Bergen

Border for a chart

Post by Tom » Mon Nov 29, 2004 4:18 pm

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

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Nov 30, 2004 7:35 am

Try the following code:

Code: Select all

Chart1.Border.Visible := False;
Chart1.BevelWidth := 0;
Marjan Slatinek,
http://www.steema.com

Tom
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Bergen

Post by Tom » Tue Nov 30, 2004 8:16 am

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

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Nov 30, 2004 9:10 am

Hi.

Which Teechart version are you using ? If this doesn't work, try setting inner and outer bevel style to bvNone.
Marjan Slatinek,
http://www.steema.com

Tom
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Bergen

Post by Tom » Tue Nov 30, 2004 10:06 am

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

Tom
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Bergen

Post by Tom » Tue Nov 30, 2004 10:08 am

Actually, setting BevelOuter to bvNone was sufficient.

Tom

Post Reply