Hi.
I create some Gantt-Bars using AddGanttColor with different colors which works perfect. But how can I change the color of one of the bars afterwards? Because if I use TChart:Series(0):asGantt:Pointer:Brush:COLOR it applies to all bars in the series...
thanks,
Harry
AddGanttColor - changing color
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Harry,
You can change it using the OnGetSeriesPointerStyle and something like this:
You can change it using the OnGetSeriesPointerStyle and something like this:
Code: Select all
Private Sub TChart1_OnGetSeriesPointerStyle(ByVal SeriesIndex As Long, ByVal ValueIndex As Long, AStyle As TeeChart.EPointerStyle)
If (ValueIndex = 5) Then
TChart1.Series(SeriesIndex).asGantt.Pointer.Brush.Color = clBlack
Else
TChart1.Series(SeriesIndex).asGantt.Pointer.Brush.Color = clTeeColor
End If
End Sub
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |