![]() |
|
GTP.NET FAQ 10888I would like to apply a vertical stripe to a specific day (or days) Please note that this article
refers to the GTP.NET Jump to article- 2007-04-30 09:38:00 - Email plexityHide Question I would like to apply a 'vertical stripe' to a specific day (or days), I want to use this to show non working (or holidays) using the same technique you use for painting your vertical stripes. How can I achieve this please. Answer In order to do this you must know when a day starts and stops in pixels, this is easily found by sending in a datetime to the Gantt.DateScaler.TimeToPixel method. So in pseudo code I would go like this: In the implementation of the OnTimeItemAreaPaintBackground event int numberOfDaysOnScreen=Round(Gantt.StopTime-Gantt.StartTime)
|
"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%" |
| (C) 1999-2010 PlexityHide.com Grastensvagen 24, S-163 45 Spanga Sweden E-mail: support@plexityhide.com |