Page 1 of 1
Gantt Chart. Width of bars.
Posted: Sun Jul 19, 2009 4:35 pm
by 9243846
Hi,
How do I find the width of a gantt bar at run time.
Then, how do I resize by code?
If there are any examples which show this, I apologise in advance...
It is VERY late on a Sunday afternoon and my wife has just handed me a glass of wine...
Best Wishes,
Tony
Re: Gantt Chart. Width of bars.
Posted: Mon Jul 20, 2009 8:44 am
by yeray
Hi Tony,
I think you are looking for that:
TonyHunt wrote:It is VERY late on a Sunday afternoon and my wife has just handed me a glass of wine...
I totally agree with you wife. There are thousands of things to do on Sundays better than working. Maybe you wife was insinuating you one...
Re: Gantt Chart. Width of bars.
Posted: Mon Jul 20, 2009 11:51 am
by 9243846
Thanks for the quick response.
>>Series1.Pointer.VertSize := 20;<<
I'm sorry, I asked the wrong question..
I guess I REALLY meant the Length of the bar itself, not the pointer..
I get confused by VertSize referencing the Width....... Sometimes English is SO convoluted.
Best Wishes
Tony
AND of course you were quite right. Life was MUCH better after the glass of wine....
Re: Gantt Chart. Width of bars.
Posted: Mon Jul 20, 2009 12:09 pm
by yeray
Hi Tony,
Excuse me, I think you answered perfectly but I understood it in a bad way because the length (or the width) of each gantt comes from the difference between its Start and End value. If what you want is to change one of those values, you could do it as follows, for example:
Code: Select all
Series1.EndValues.Value[3] := Series1.EndValues.Value[3] + DateTimeStep[dtOneWeek];
If that's not still what you meant, could you please attach here a picture showing us the expected result?
Re: Gantt Chart. Width of bars.
Posted: Fri Jul 24, 2009 9:30 am
by 9243846
Sorry for the delay answering. The advantage with working Sunday is I don't allways work midweek.
Thank you for the answer, it was exactly what I needed.
Tony