Page 1 of 1

Changing band color

Posted: Fri Sep 24, 2010 1:32 pm
by 9533057
hi,

I'd like to set/change color band in Fast Line Serie. How can i do that ? Where is this property in the Teechart editor ?
changing.jpg
changing.jpg (56.39 KiB) Viewed 5341 times
In my sample it is not a Fast Line serie but I would like do the same in a Fast Line serie

Thanks a lot for your help

Guilz

Re: Changing band color

Posted: Fri Sep 24, 2010 4:10 pm
by yeray
Hi Gulitz,

I think you meant GridBand instead of ColorBand. This is how you could use GridBand at runtime:

Code: Select all

Private Sub Form_Load()
  TeeCommander1.ChartLink = TChart1.ChartLink
   
  TChart1.Aspect.View3D = False
  TChart1.AddSeries scFastLine
  TChart1.Series(0).FillSampleValues
  
  TChart1.Tools.Add tcGridBand
  TChart1.Tools.Items(0).asGridBand.Axis = TChart1.Axis.Left
  TChart1.Tools.Items(0).asGridBand.Band1.Color = vbRed
  TChart1.Tools.Items(0).asGridBand.Band2.Color = vbYellow
End Sub
Through the editor, you should find it in "Tools\Grid Band\Band 1" there is a color shape, clicking on it, it shows the color picker.
GridBand.png
GridBand.png (12.23 KiB) Viewed 5257 times

Re: Changing band color

Posted: Mon Sep 27, 2010 6:45 am
by 9533057
Thanks Yeray, it is exactly what I was looking for :wink:

Guilz