![]() |
|
phGantTimePackage FAQ 10907How can I render a custom link when I set the link style to
tlsUserDraw? Please note that this article
refers to the phGantTimePackage Jump to article- 2007-05-27 17:30:00 - Email plexityHide Question How can I render a custom link when I set the link style to Answer The first thing to do is to create the link and set its style to User: Private Sub LinkTimes(theFrom As IphDataEntity_GantTime, theTo As IphDataEntity_GantTime) Dim aLink As IphDataEntity_Link Dim aInt As Integer If (theFrom Is Nothing) Or (theTo Is Nothing) Then ' Dont do anything Else Set aLink = phGantX1.AddLink aLink.LinkOwner = theFrom aLink.LinkedTo = theTo aInt = globalCounter Mod 4 'aLink.LinkStyle = tlsMSProject aLink.LinkStyle = tlsUserDraw aLink.LinkColor = vbBlue If aInt = 1 Then aLink.StartFinishOption = tlsfFS ElseIf aInt = 2 Then aLink.StartFinishOption = tlsfSS ElseIf aInt = 3 Then aLink.StartFinishOption = tlsfFF ElseIf aInt = 3 Then aLink.StartFinishOption = tlsfFS End If globalCounter = globalCounter + 1 End If Set globalToLinkTo = theTo End Sub Private Sub phGantX1_OnUserDrawLink(ByVal theGant As phGantXControl.IphGantX2, ByVal theDataEntity_Link As phGantXControl.IphDataEntity_Link, ByVal theHDC As Long, ByVal Startx As Long, ByVal Starty As Long, ByVal Stopx As Long, ByVal Stopy As Long) aDummy = Module1.MoveTo(theHDC, Startx, Starty) aDummy = Module1.LineTo(theHDC, Stopx, Stopy) End Sub
|
"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 |