10049 : Hiding a time item
…time item. You will need to remove the time item, and later create it, or move it it time. One suggestion is to add ten years to the start date … Continue reading
…time item. You will need to remove the time item, and later create it, or move it it time. One suggestion is to add ten years to the start date … Continue reading
…can convert a Hdc to a Graphic object like in the sample below. private void axphSchemaX1_OnUserDrawTime(object sender, AxphGantXControl.IphSchemaXEvents_OnUserDrawTimeEvent e) { Graphics gr=System.Drawing.Graphics.FromHdc((IntPtr)e.theHDC); gr.DrawLine(new Pen(Color.Beige,5),e.left,e.top,e.right,e.bottom); gr.DrawLine(new Pen(Color.BlueViolet,5),e.right,e.top,e.left,e.bottom); }… Continue reading
…being applied. private void axphGantX1_OnHintInfo(object sender, AxphGantXControl.IphGantXEvents_OnHintInfoEvent e) { if (e.theStart.ToOADate()>0) { labelHint.Text=”Starts”+e.theStart.ToString()+” and This long:”+e.theLength.ToString(); } else { labelHint.Text=”nada”; } }… Continue reading
…alink=IphGantX3.GetLinks[i] if ((not alink.LinkOwner is Null) and (not alink.LinkedTo is Null) then if (alink.LinkOwner=Gantt1.IphGantX3.ActiveDataEntity) or (alink.LinkedTo=Gantt1.IphGantX3.ActiveDataEntity) then ‘ Found one, do stuff… endif endif Next i… Continue reading
…other thing in the program) : Private Sub phGantX1_OnClickGantArea(ByVal theGant As phGantXControl.IphGantX, ByVal theDataEntity As phGantXControl.IphDataEntity_GantTime) On Error Resume Next If (Not phGantX1.ActiveDataEntity Is Nothing) Then PlanningId… Continue reading
… Call .PrintToHdc(Printer.hDC, 1, lngTitleHeight, dblXscale, dblXscale, .TreeWidth, _ .TopItemTree, -1, False, .Start, .Stop, .GetScaleLen, .ScalerHeight, _ lngWidthReturned, lngHeightReturned) End With Printer.EndDoc End Sub… Continue reading
…be shown.. that is what I wish to restrict.< ?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /> Answer Implement IphGantX3.OnTreeExpand and set the Allow parameter to false. It will do… Continue reading
…if (!File.Exists(Page.MapPath(“GanttStyle.css”))) // If you have no need for dynamic styles, the file does not need to be written every time… Gantt_ASP_Main.UpdateExternalStyles(Page.MapPath(“GanttStyle.css”)); // This call reads the CellLayouts and create… Continue reading
…GanttRow.FromGridNode(gn); TimeItem ti=gr.Layers[0].AddNewTimeItem(); ti.Start=gantt1.DateScaler.StartTime.AddDays(5); ti.Stop=ti.Start.AddDays(10); ti.TimeItemLayout=ti.TimeItemLayout.Clone() as TimeItemLayout; ti.TimeItemLayout.TimeItemStyle=TimeItemStyle.User; } /// <summary> /// This event can help you override how a time… Continue reading
…{ pd.Print(); } else { MessageBox.Show(“Printer is invalid.”); } } finally { streamToPrint.Close(); } } catch(Exception ex) { … Continue reading