<?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 : Flow Graph</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Flow Graph]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 05:15:53 +0000</pubDate>
  <lastBuildDate>Mon, 14 Jan 2019 09:31:12 +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=23795</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[Flow Graph : The matter came from the function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23795&amp;PID=77211&amp;title=flow-graph#77211</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5158">lrenoux</a><br /><strong>Subject:</strong> 23795<br /><strong>Posted:</strong> 14 January 2019 at 9:31am<br /><br />The matter came from the function SetSize which set the size of the element "nodeContent" which is include in an xaml element border with a "BorderThickness" equal to 1.&nbsp;<div><br></div><div>ActualSize memorise the size of the markup ("nodeFrame") with border element, UserSize memorise the size of "nodeContent" without element border.</div><div><br></div><div>Fichier "FlowGraph\res\Node.xaml"</div><div><br></div><div><div>&lt;Border xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'</div><div><span style="white-space:pre">	</span>x:Name='nodeFrame' VerticalAlignment='Center' HorizontalAlignment='Center' Padding='0' BorderThickness='1' BorderBrush='#717171' &gt;</div><div>&nbsp; &nbsp;&lt;StackPanel x:Name='nodeContent' VerticalAlignment='Center' HorizontalAlignment='Center' Background='#DCDCDC'&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;Border x:Name='nodeCaptionBorder' BorderThickness='1' BorderBrush='#717171' Background='#ACACAC' Padding='20, 0, 20, 0' CanSetColor='True'&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;WrapPanel&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Image x:Name='nodeImage' Margin='-20,0,0,0'/&gt;&lt;TextBlock x:Name='nodeCaption' FontWeight='Bold' VerticalAlignment='Center' HorizontalAlignment='Center'/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/WrapPanel&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/Border&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;StackPanel x:Name='nodeCustomControl'/&gt;</div><div><span style="white-space:pre">		</span>&lt;StackPanel x:Name='nodeItemsCollection'/&gt;</div><div><span style="white-space:pre">	</span>&lt;/StackPanel&gt; &lt;!-- nodeContent --&gt;</div><div>&lt;/Border&gt; &lt;!-- nodeFrame --&gt;</div></div><div><br></div><div>L.</div>]]>
   </description>
   <pubDate>Mon, 14 Jan 2019 09:31:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23795&amp;PID=77211&amp;title=flow-graph#77211</guid>
  </item> 
  <item>
   <title><![CDATA[Flow Graph : Hi,Codejock version : no matter,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23795&amp;PID=77210&amp;title=flow-graph#77210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5158">lrenoux</a><br /><strong>Subject:</strong> 23795<br /><strong>Posted:</strong> 14 January 2019 at 5:32am<br /><br />Hi,<div><br></div><div>Codejock version : no matter, the problem is here since the beginning.<br><div><br></div><div>It seems there is a lot of problems on size for nodes in FlowGraph control.&nbsp;</div><div><br></div><div>First :&nbsp;</div><div><br></div><div>When saving a node, some weird modifications will be done only on height.&nbsp;</div><div><br></div><div><div>void CXTPFlowGraphNode::DoCommonPropExchange(CXTPPropExchange* pPX)</div><div>{</div></div><div>...</div><div><div><span style="white-space:pre">		</span>// when saving it's required to check, because XTPMeasureMarkupElement</div><div><span style="white-space:pre">		</span>// returns 2px more for the whole markup</div><div><br></div><div><span style="white-space:pre">		</span>CSize szStoredSize = m_szUserSize;</div><div><span style="white-space:pre">		</span>szStoredSize.cy -= 2;</div></div><div><br></div><div>Why height and not width ? And i think, because UserSize is saved and not ActualSize, you don't have to do this (see below).</div><div><br></div><div>Second :</div><div><br></div><div>Take the flowgraph sample, select a node, resize it only on height, you will see that the width will be enlarge by 2 pixels.</div><div><br></div><div>Finally :</div><div><br></div><div>It seems that the function SetSize on a node enlarge all dimensions given by 2. In memory, we have UserSize + 2 = ActualSize. All calls on this method must be done with UserSize. When a node is serialized, the call to SetSize is made with UserSize but in the resize function (CXTPFlowGraphControl::StartResizeNode) is made with ActualSize.</div><div><br></div><div><br></div><div>L.</div></div>]]>
   </description>
   <pubDate>Mon, 14 Jan 2019 05:32:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23795&amp;PID=77210&amp;title=flow-graph#77210</guid>
  </item> 
 </channel>
</rss>