Search found 5 matches

by droid
Thu Oct 12, 2006 12:22 am
Forum: VCL
Topic: How to change Mark position
Replies: 19
Views: 32635

narcis wrote:Hi droid,

If you use the code in the OnAfterDraw event you can add a Chart1.Draw; call at the end in the OnFormCreate event so that the chart is forced to be repainted and thus marks properly positioned.
That's exactly the way I'm doing it!
I build chart, then do chart.draw but it won't work !
by droid
Tue Oct 10, 2006 11:45 pm
Forum: VCL
Topic: How to change Mark position
Replies: 19
Views: 32635

Hi droid, Yes, this is possible. Please read this old message explaining how to do that. Hi Narcis, thanks a lot, that code helped me a lot but I still have troubles. I can feel it is a timing ussue. I need to display marks in GanttChart not in the middle of the bar(default) but at the end of it. I...
by droid
Tue Oct 10, 2006 7:36 am
Forum: VCL
Topic: How to change Mark position
Replies: 19
Views: 32635

How to change Mark position

Hi,

Is it possible to change the Mark position at all?

I tried to do that using Serie.Marks.Positions.Position[ind].LeftTop.X := somevalue; but always got access violation error message.

Thanks in advance,
droid
by droid
Thu Sep 28, 2006 11:48 pm
Forum: VCL
Topic: TGantSeries in TDBChart
Replies: 3
Views: 5240

Hi Narcis, I think I found what the problem is - please confirm :) Regardles of nextask value returned by my query GanttSeries will initially set NextTask property to -1. In order to set proper NextTask I need to do that programmatically. like in your example: GanttSeries1.NextTask[ tmp1 ]:= tmp2 ; ...
by droid
Thu Sep 28, 2006 8:07 am
Forum: VCL
Topic: TGantSeries in TDBChart
Replies: 3
Views: 5240

TGantSeries in TDBChart

Hi, I tried to build my first gant chart using DB but could not work it out since after loading data NextTask alwyas mixed up. I use the following sql statement to populate data: Create Table #GantTest ( Start DateTime, Y int, [End] DateTime, NextTask int ) Insert #GantTest Values('01/01/2006', 1, '...