10070 : Can you change the format of the date on the date scaler?

…this.gantt1.DateScaler.UseDayNumbersNotWeeks=false;       this.gantt1.DateScaler.ShowWeekNumbers=false; void DateScaler_OnDateScalerDrawString(DateScaler dateScaler, DateScalerDrawStringEventArgs e)     {         if((e.LongIntervall&&e.Resolution==NonLinearTime.TimeResolution.days)&&(!this.gantt1.DateScaler.UseDayNumbersNotWeeks))         {             e.OutputText=e.DateTime.ToString(“dd.MM”)+” – “+e.DateTime.AddDays(6).ToString(“dd.MM”);             e.ContinueDraw=true;         }     } Supports answer: The answer to this… Continue reading

10066 : I need is to be able to display various periods of calendar with several shifts (time periods) in a day..

…                int x1=gantt1.DateScaler.TimeToPixel(i.Subtract(i.TimeOfDay));         int x2=gantt1.DateScaler.TimeToPixel(ii.Subtract(ii.TimeOfDay));                 if (i.DayOfWeek==DayOfWeek.Sunday )           G.FillRectangle(b_sunday,x1,0,x2-x1,aHeight);         else         if (i.DayOfWeek==DayOfWeek.Wednesday)           G.FillRectangle(b_wednesday,x1,0,x2-x1,aHeight);                i=ii;       }     }    … Continue reading

10065 : Is it possible to make in the same TimeItem 2 different colors or shapes?

…BreakInfo breakInfo=e.TimeItem.UserReference as BreakInfo;                                              DateTime breakStart=e.TimeItem.Start.AddDays(breakInfo.startsDaysFromStart)+e.Diff;         DateTime breakStop=breakStart.AddDays(breakInfo.breakLengthInDays);                   int breakStartPixel=gantt1.DateScaler.TimeToPixel(breakStart);         int breakStopPixel=gantt1.DateScaler.TimeToPixel(breakStop);                         e.G.FillRectangle(new SolidBrush(Color.Blue),new Rectangle(e.Rect.Left,e.Rect.Top,breakStartPixel-e.Rect.Left,e.Rect.Height));… Continue reading

10062 : How in VB6 do you iterate through the nodes/cells of the tree view

…                Dim s As String                 s = phGantX1.GetGridCellString(ii, activity.GridRowIndex)                                      Next                                     IterateActivity activity.SubDataList, activity ‘ traverse owned nodes         Next           End Sub  … Continue reading