Border editor.

TeeChart for ActiveX, COM and ASP
Post Reply
TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Border editor.

Post by TonyVSUK » Thu Sep 09, 2010 5:17 pm

I have a line series, when I view the editor, and click series, there is a button for "Border".

How do I access those settings for the border via code? I cannot figure it out. I assumed it would be something like
series.GetAsLine().GetBorderPen()

but I just cannot find out how to access the border settings.

Tony.

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

Re: Border editor.

Post by Yeray » Fri Sep 10, 2010 3:18 pm

Hi Tony,

It's something like following:

Code: Select all

TChart1.Series(0).asLine.LinePen.Color = vbGreen
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

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Border editor.

Post by TonyVSUK » Fri Sep 10, 2010 3:23 pm

No, that's the line colour itself. I mean the border properties of the line (see attached image).

Also, below the border popup in the attachment there is a setting "Height 3d". I cannot find how to set that in code either.
Attachments
TChartBorderDialog.jpg
TChartBorderDialog.jpg (27.32 KiB) Viewed 6030 times

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

Re: Border editor.

Post by Yeray » Fri Sep 10, 2010 4:24 pm

Hi Tony,

What TeeChart version are you using? Here is my result in VB6 with TeeChart AX 8.0.0.8 and also with the TeeChart AX v2010 beta.

Code: Select all

Private Sub Form_Load()
  TeeCommander1.ChartLink = TChart1.ChartLink
   
  TChart1.AddSeries scLine
  TChart1.Series(0).FillSampleValues
  
  TChart1.Series(0).Color = RGB(255, 128, 0)
  TChart1.Series(0).asLine.LinePen.Color = vbGrayText
  TChart1.Series(0).asLine.LinePen.Width = 3
  TChart1.Series(0).asLine.LineHeight = 20
End Sub
test.png
test.png (25.33 KiB) Viewed 6028 times
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

Post Reply