10278 : is it possible to change the backcolor of the Holyday (saturday and sunday) that automatically have a different color?

…If you want to customize the way the date scaler draws its strings, you can… if (e.DateTime.DayOfWeek==DayOfWeek.Sunday ) { if ((!e.LongIntervall && e.Resolution==NonLinearTime.TimeResolution.days) || (e.LongIntervall && (e.Resolution==NonLinearTime.TimeResolution.hours6 || e.Resolution==NonLinearTime.TimeResolution.hours3 ||… Continue reading

10888 : I would like to apply a vertical stripe to a specific day (or days)

…In the implementation of the OnTimeItemAreaPaintBackground event int numberOfDaysOnScreen=Round(Gantt.StopTime-Gantt.StartTime) for i=0 to numberOfDaysOnScreen-1 do begin   DateTime oneDay=Gantt.StartTime+i   Color c=GetColorForThisDay(oneDay)   int PixelForStartOfDay=Gantt.DateScaler.TimeToPixel(Trunc(oneDay))   int PixelForEndOfDay=Gantt.DateScaler.TimeToPixel(Trunc(oneDay)+1)   DrawColoredRectangle(PixelForStartOfDay,0,PixelForEndOfDay,Gantt.Height) end  … Continue reading

10005 : What events can be caught from the gantt chart when using GTP.NET on an ASP page?

…onMouseOver=\”self.status=’YOU ARE NOW ON THE ROW, and not over a time item’;return true\” “;       }       else       {         e.Result=” onMouseOver=\”self.status=’—‘;return true\” “+e.Result;       }     }  … Continue reading

10211 : How can I draw a rectangle on the TimeItemArea to a group of timeitems?

foreground of the Grid, DateScaler or TimeItemArea         e.G.FillRectangle(new SolidBrush(Color.Black),aOffscreenDraw.CalcLeft+100,aOffscreenDraw.CalcTop+100,90,90);         e.G.DrawString(“Front”,new Font(“Helvetica”,14),new SolidBrush(Color.Red),aOffscreenDraw.CalcLeft+100,aOffscreenDraw.CalcTop+100);         //#1         if (mouseisCurrentlyDown && gantt1.MouseMoveKind==MouseMoveKind.none)         {           e.G.DrawRectangle(new Pen(Color.Green),mousewaspressedat.X,mousewaspressedat.Y,mouseisat.X-mousewaspressedat.X,mouseisat.Y-mousewaspressedat.Y);         }       }… Continue reading

10455 : TimeItem made from images

…you choose “User” style on your time item and implement the OnTimeItem_UserDraw event you can easily implement this: imageList1.Draw(e.G,e.Rect.X,e.Rect.Y,e.Rect.X+arrowWidth,e.Rect.Height,const_firstArrow); imageList1.Draw(e.G,e.Rect.X+arrowWidth,e.Rect.Y,e.Rect.Width-2*arrowWidth,e.Rect.Height,const_middlepart); imageList1.Draw(e.G,e.Rect.X+e.Rect.Width-arrowWidth,e.Rect.Y,arrowWidth,e.Rect.Height,const_secondArrow); Its hard to give advise regarding the size; this… Continue reading

10602 : Multi page print with scaling in GTP.NET

…printer. PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPageWithScaling); pd.BeginPrint += new PrintEventHandler(this.pd_BeginPrint); pd.EndPrint += new PrintEventHandler(this.pd_EndPrint); printPreviewDialog1.Document = pd; printPreviewDialog1.ShowDialog(this); } catch (Exception ex) { MessageBox.Show(“An error occurred… Continue reading