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
Gantt Chart. Width of bars.
Re: Gantt Chart. Width of bars.
Hi Tony,
I think you are looking for that:
I think you are looking for that:
Code: Select all
Series1.Pointer.VertSize := 20;
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...TonyHunt wrote:It is VERY late on a Sunday afternoon and my wife has just handed me a glass of wine...
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Gantt Chart. Width of bars.
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....
>>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.
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:
If that's not still what you meant, could you please attach here a picture showing us the expected result?
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];
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Gantt Chart. Width of bars.
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
Thank you for the answer, it was exactly what I needed.
Tony