In our project we have a gantt chart. Each Bar is standing for another Person with a special job. Now we need to add to the bars picture, every picture will stand for the persons job and the picture should be visible in the first quarter of a bar.
Is there a simple solution to reach this?
greetings
JD
Pictures on Gantt Charts
Hello,
there's not a way to it automatically through methods and properties, but it can be accomplished by drawing directly onto the canvas using the Draw method. Here I show an example which draws an image into the first gantt bar :
there's not a way to it automatically through methods and properties, but it can be accomplished by drawing directly onto the canvas using the Draw method. Here I show an example which draws an image into the first gantt bar :
Code: Select all
Private Sub TChart1_OnAfterDraw()
' This will add image for first gant....
TChart1.Canvas.Draw TChart1.Axis.Bottom.CalcXPosValue(TChart1.Series(0).XValues.Value(0)), _
TChart1.Axis.Left.CalcYPosValue(TChart1.Series(0).YValues.Value(0)) - _
TChart1.Series(0).asGantt.Pointer.VerticalSize / 2, _
Image1.Picture
End Sub
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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 |
Hello,
I'm afraid this is not going to be possible, as the Draw method does not include transparency support. We'll add on our wish list to be considered for further releases.
I'm afraid this is not going to be possible, as the Draw method does not include transparency support. We'll add on our wish list to be considered for further releases.
Pep Jorge
http://support.steema.com
http://support.steema.com