![]() |
|
phGantTimePackage FAQ 10070Can you change the format of the date on the date scaler? Please note that this article
refers to the phGantTimePackage Jump to article- 2006-07-19 10:30:00 - Email plexityHide Question Can you change the format of the date on the date scaler? Answer Sure; BUT you probably want to override the suggested output; Additional information from our friend Uli: I would like to change the DateScaler string. FAQ Q10070 describes a solution but there is a problem with the displayed DateTime which doesn?t agree to the displayed days. There is a small offset of three days. I did the following: this.gantt1.DateScaler.OnDateScalerDrawString+=new DateScalerDrawStringEventHandler(DateScaler_OnDateScalerDrawString); void DateScaler_OnDateScalerDrawString(DateScaler dateScaler, DateScalerDrawStringEventArgs e) Supports answer: The answer to this is that weeks presentation is performed when drawMarker.DayOfWeek == timeLine.MidWeek, so Uli is correct. For week presentation the supplied date will need an AddDays(-3) for displaying the start of the week correctly. This was a bit unexpected in the design phase but we are keeping this behaviour so you can safely substract 3 days to get the start and add 3 days to get the end of the week (all cultures have 7 days a week right?!).
In phGantTimePackage you implement the event OnScalerStringShort and OnScalerStringLong to change the short and long intervall representation. Also; the Gantt.DateScaler.ShowWeekNumbers=true and the Gantt.DateScaler.StartOfWeek property is an easy way to an alternative week presentation.
|
"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%" |
| ? 1999-2006 PlexityHide.com Grastensvagen 24, S-163 45 Spanga Sweden E-mail: support@plexityhide.com |