<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Flowgraph bug - and workaround.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : Flowgraph bug - and workaround.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:47:02 +0000</pubDate>
  <lastBuildDate>Fri, 25 Mar 2011 12:12:18 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17995</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Flowgraph bug - and workaround. : &amp;#034;The Node will not  consistently...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63567&amp;title=flowgraph-bug-and-workaround#63567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 17995<br /><strong>Posted:</strong> 25 March 2011 at 12:12pm<br /><br /><br>"The Node will not consistently resize properly after removing a point.&nbsp; Sometimes it works, sometimes it doesn't. I'm not sure why yet. The node will either retain the original size box or will shrink the y coordinate properly."<br><br>Isolated this issue. The CSize m_szUserSize Node property was the culprit. <br><br>if m_szUserSize.cy is anything other than 0, the Node will size to that automatically (by design).<br><br>To solve, whenever I need to set a user width but not a user height, I set the cy to 0. <br><br>userSize.cy = 0;<br>pNode-&gt;SetSize(userSize);<br><br>I'd say this isn't a bug but something to watch for in coding if you are using the user size options.<br>]]>
   </description>
   <pubDate>Fri, 25 Mar 2011 12:12:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63567&amp;title=flowgraph-bug-and-workaround#63567</guid>
  </item> 
  <item>
   <title><![CDATA[Flowgraph bug - and workaround. : Hello,Thanks, agree this one about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63544&amp;title=flowgraph-bug-and-workaround#63544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17995<br /><strong>Posted:</strong> 25 March 2011 at 5:57am<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">Hello,<div><br></div><div>Thanks, agree this one about ConnectionPoint, we added &nbsp;code to clean it.</div></div>]]>
   </description>
   <pubDate>Fri, 25 Mar 2011 05:57:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63544&amp;title=flowgraph-bug-and-workaround#63544</guid>
  </item> 
  <item>
   <title><![CDATA[Flowgraph bug - and workaround. : The problem occurs when I remove...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63537&amp;title=flowgraph-bug-and-workaround#63537</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 17995<br /><strong>Posted:</strong> 24 March 2011 at 6:28pm<br /><br />The problem occurs when I remove a single CXTPFlowGraphConnectionPoint from the Node. This is likely because it's beyond the design parameters of the code, but it would be a useful function.<br><br>Removing the entire Node works perfectly. Removing a single point from the Node fails.<br><br>There is another side effect I've discovered. The Node will not consistently resize properly after removing a point.&nbsp; Sometimes it works, sometimes it doesn't. I'm not sure why yet. The node will either retain the original size box or will shrink the y coordinate properly. This occurs using the same code example as follows:<br><br>void My_View::RemoveConnectionPoint(CXTPFlowGraphConnectionPoint *point)<br>{<br>// kludge to remove associated connections<br><br>&nbsp;&nbsp;&nbsp; if (point-&gt;GetConnectionsCount())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPFlowGraphConnection* pConnection = NULL;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPFlowGraphConnections* pConnections = GetControl()-&gt;GetActivePage()-&gt;GetConnections();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int i = pConnections-&gt;GetCount()-1; i &gt;= 0; i--)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConnection = pConnections-&gt;GetAt(i);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pConnection-&gt;GetInputPoint() == point || pConnection-&gt;GetOutputPoint() == point)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConnection-&gt;Remove(); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>// we can now remove the Point from the Node<br><br>&nbsp;&nbsp;&nbsp; CXTPFlowGraphNode *pNode = point-&gt;GetNode();<br>&nbsp;&nbsp;&nbsp; pNode-&gt;GetConnectionPoints()-&gt;Remove(point);<br><br>// I would have expected the Node box to shrink accordingly and it does. But only sometimes.<br><br>}<br><br>]]>
   </description>
   <pubDate>Thu, 24 Mar 2011 18:28:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63537&amp;title=flowgraph-bug-and-workaround#63537</guid>
  </item> 
  <item>
   <title><![CDATA[Flowgraph bug - and workaround. : Hello,Can you specify scenario...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63103&amp;title=flowgraph-bug-and-workaround#63103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17995<br /><strong>Posted:</strong> 04 March 2011 at 6:28am<br /><br />Hello,<div><br></div><div>Can you specify scenario when we can see problem.</div><div><br></div><div>We remove all connections in&nbsp;CXTPFlowGraphNode::OnRemoved so they removed before Node deleted.</div>]]>
   </description>
   <pubDate>Fri, 04 Mar 2011 06:28:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63103&amp;title=flowgraph-bug-and-workaround#63103</guid>
  </item> 
  <item>
   <title><![CDATA[Flowgraph bug - and workaround. : I must say that the new chart...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63096&amp;title=flowgraph-bug-and-workaround#63096</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 17995<br /><strong>Posted:</strong> 03 March 2011 at 8:58pm<br /><br />I must say that the new chart material is great! You folks did a wonderful job.<br><br>The Flowgraph control was an unexpected bonus as I had an immediate use for it.<br>While I was implementing I noticed that if you try to delete a node with CXTPFlowGraphConnections (not just CXTPFlowGraphConnectionPoints) the system goes into spasms.<br><br>Before removing <b>any</b> node that has connection points with connections to it or any connection points with connections to it, you<b> must</b> remove the connections first. This is a little messy but I found the following works:<br><br>// where pNode is the CXTPFlowGraphNode you want to toss<br><br>for (int i = 0; i &lt; pNode-&gt;GetConnectionPoints()-&gt;GetCount(); i++)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp; pConnectionPoint = pNode-&gt;GetConnectionPoints()-&gt;GetAt(i);<br><br>&nbsp;&nbsp;&nbsp;&nbsp; if (pConnectionPoint-&gt;GetConnectionsCount())<br>&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPFlowGraphConnections* pConnections =&nbsp;&nbsp;&nbsp; pNode-&gt;GetControl()-&gt;GetActivePage()-&gt;GetConnections();<br><br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPFlowGraphConnection* pConnection;<br><br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for(int i = pConnections-&gt;GetCount()-1; i &gt;= 0; i--)<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConnection = pConnections-&gt;GetAt(i);<br><br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pConnection-&gt;GetInputPoint() == pConnectionPoint || pConnection-&gt;GetOutputPoint() == pConnectionPoint)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConnection-&gt;Remove(); <br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp; &nbsp;&nbsp; }<br>&nbsp;}<br><br>After that you can call RemoveAll for the connection points, and finally toss the node.<br><br>Since there's no reference from the node or connection points to the connections there's no simple way to do a deep delete. There is a reference back to the connection points from the connections which is what I ended up using in this method. Unfortunately, that means you have to iterate all the connections on the control to remove the ones associated with the node which could be tedious if there were an inordinate number of them. <br><br>Please, if anyone has a better way to do this let me know and it will be some more fun for the Codejock people to work on.<br><br><br>]]>
   </description>
   <pubDate>Thu, 03 Mar 2011 20:58:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17995&amp;PID=63096&amp;title=flowgraph-bug-and-workaround#63096</guid>
  </item> 
 </channel>
</rss>