<?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 Node sizing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : FlowGraph Node sizing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 21 May 2026 06:09:10 +0000</pubDate>
  <lastBuildDate>Fri, 09 Aug 2013 16:42:05 +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=21848</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 Node sizing : Version 16.2.3Node sizing doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21848&amp;PID=71510&amp;title=flowgraph-node-sizing#71510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 21848<br /><strong>Posted:</strong> 09 August 2013 at 4:42pm<br /><br />Version 16.2.3<br><br>Node sizing doesn't work quite right. <br><br>1. Font Specific! CalcMinSize width may be short when constructing a node. This results in the last character of the node heading being truncated. Problem appears to be here:<br><br>if (pNodeCaption)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iMinWidth = pNodeCaption-&gt;GetActualSize().cx + 40; // 40 is 20 left and right<br>}<br><br>2. UserSize seems problematic. <br><br>2.1 - Adding a node from xml where the UserSize is less than MinSize results in a node display that is smaller than MinSize. I believe that my particular problem originated from a previous version of FlowGraph which didn't automatically adjust to MinSize if the UserSize was invalid.<br><br>2.2 - User added nodes don't seem to initialize size properly unless you go through some extra steps to make sure UserSize is up-to-date. Note the following:<br><br>&nbsp;&nbsp;&nbsp; m_pNode-&gt;RecalLayout();<br><br>&nbsp;&nbsp;&nbsp; CSize userSize = m_pNode-&gt;GetUserSize();<br>&nbsp;&nbsp;&nbsp; CSize minSize = m_pNode-&gt;GetMinSize();<br><br>&nbsp;&nbsp;&nbsp; if (userSize.cx != minSize.cx)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; userSize.cx = minSize.cx;<br>&nbsp;&nbsp;&nbsp; if (userSize.cy != minSize.cy)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; userSize.cy = minSize.cy;<br><br>&nbsp;&nbsp;&nbsp; m_pNode-&gt;SetSize(userSize);<br><br>]]>
   </description>
   <pubDate>Fri, 09 Aug 2013 16:42:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21848&amp;PID=71510&amp;title=flowgraph-node-sizing#71510</guid>
  </item> 
 </channel>
</rss>