10787 : I want to host my UserControl with a Gantt in internet explorer and call it with javascript

…decimal.Parse(Phase[“BudgetMoney”].ToString());  Drag and drop requires extra permissions too //gantt1.Grid.AllowDrop = true;   //HK Need UI-permissions   So either increase the security context by asking for more trust, or remove functionality…  … Continue reading

10921 : Is it possible to have the root node point to one table and the sub node point to a different table. These are nodes on a grid of the gantt chart

…you have different definitions on the dataviews on subnodes than the definition on the rootnodes. Add mapping with ColumnToFieldMapperHash.Add(“GridColumn.DataSourceColumn name”,”Name of field in dataview”) Note: if ColumnToFieldMapperHashUse=false the ColumnToFieldMapperHash is… Continue reading

10269 : How to use the PrintWithGrid method in Delphi 7 to print the Gantt Chart to a BmpFile or JPeg File ?

…in a different  device context (hdc). So go like this to create a bitmap:   Result  := TBitmap.Create;   Result.Canvas.Lock;   try     Result.PixelFormat := pf32bit;     Result.Width := xWidth;     Result.Height := xHeight;     TphPrintGantt.PrintWithGrid(G1,Result.Canvas.Handle,10,10,2,2,G1.TreeWidth,nil,-1,true,g1.Start,g1.Stop,g1.Width-g1.TreeWidth,g1.ScalerHeight,usedwidth,usedHeight,0,0,nil);   finally     Result.Canvas.UnLock;     Result.Free;   end;  … Continue reading

10413 : Can I define some areas as a “break” (e.g. holiday) area?

…breakStart=e.TimeItem.Start.AddDays(breakInfo.startsDaysFromStart).Add(e.Diff); DateTime breakStop=breakStart.AddDays(breakInfo.breakLengthInDays); int breakStartPixel=gantt1.DateScaler.TimeToPixel(breakStart); int breakStopPixel=gantt1.DateScaler.TimeToPixel(breakStop); if (gantt1.ScheduleMode) { e.G.FillRectangle(new SolidBrush(Color.Blue),new Rectangle(e.Rect.Left,e.Rect.Top,e.Rect.Width,breakStartPixel-e.Rect.Top)); e.G.FillRectangle(new SolidBrush(Color.Blue),Rectangle.FromLTRB(e.Rect.Left,breakStopPixel,e.Rect.Right,e.Rect.Bottom)); e.G.DrawRectangle(new Pen(Color.Black),e.Rect); } else { e.G.FillRectangle(new SolidBrush(Color.Blue),new Rectangle(e.Rect.Left,e.Rect.Top,breakStartPixel-e.Rect.Left,e.Rect.Height)); e.G.FillRectangle(new SolidBrush(Color.Blue),Rectangle.FromLTRB(breakStopPixel,e.Rect.Top,e.Rect.Right,e.Rect.Bottom)); e.G.DrawRectangle(new Pen(Color.Black),e.Rect); } } }… Continue reading