<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.info/rss_namespace/">
 <channel>
  <title>Northwoods Software Forums</title>
  <link>http://www.nwoods.com/forum</link>
  <description>This is an XML content feed of; Northwoods Software Forums : Last 10 Posts</description>
  <pubDate>Fri, 09 May 2008 19:39:02 +0000</pubDate>
  <lastBuildDate>Fri, 09 May 2008 09:57:47 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 8.05</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>www.nwoods.com/forum/RSS_topic_feed.asp</WebWizForums:feedURL>
  <image>
   <title>Northwoods Software Forums</title>
   <url>http://www.nwoods.com/forum/../images/godiagram%20logostripe.gif</url>
   <link>http://www.nwoods.com/forum</link>
  </image>
  <item>
   <title>GoDiagram : Printing nested GoSubGraph</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2572&amp;PID=10381#10381</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=2246">jaschwa</a><br /><strong>Subject:</strong> Printing nested GoSubGraph<br /><strong>Posted:</strong> 09 May 2008 at 9:57am<br /><br />Thanks for the tips. At first I didn't get it, so I set this problem aside and twisted my brain around some WPF. When I came back to this, it made sense.<DIV><DIV>&nbsp;</DIV></DIV><DIV>I had already sub-classed GoView, so once I overrode PrintDocumentSize and PrintDocumentTopLeft, everything worked beautifully. One&nbsp;of the other&nbsp;keys was overriding of GoSubGraph's CanPrint() so that the if PrintsChildren (a new property) is true, Paint gets called for its children even if the GoSubGraph itself is not Printable.&nbsp;Here's the code I came up with, for the benefit of others:</DIV><DIV>&nbsp;</DIV><DIV>Code from form doing the printing:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"><BR><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT color=#0000ff>private</FONT> <FONT color=#0000ff>void</FONT> Print()<BR></FONT></FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>bool</FONT> changedPrintable = <FONT color=#0000ff>false</FONT>;<BR></FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp; goView1.PrintScale = goView1.DocScale;<BR></FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp; changedPrintable = SetPrintSelected();<BR><BR></FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp;&nbsp;goView1.Print(); <BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#009900 size=2>// or for PrintPreview:<BR>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp; goView1.PrintPreview();&nbsp;<BR><BR></FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>if</FONT> (changedPrintable)<BR></FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ClearPrintSelected();<BR></FONT><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>}<BR><BR></FONT><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>private</FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">bool</SPAN> SetPrintSelected()<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">bool</SPAN> changedPrintable = <SPAN style="COLOR: blue">false</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (goView1.Selection.Count &gt; 0)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>changedPrintable = <SPAN style="COLOR: blue">true</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">foreach</SPAN> (<SPAN style="COLOR: #2b91af">GoObject</SPAN> obj <SPAN style="COLOR: blue">in</SPAN> goView1.Document)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>obj.Printable = goView1.Selection.Contains(obj);<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (obj <SPAN style="COLOR: blue">is</SPAN> <SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">MySubGraph</SPAN></SPAN>)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">var</SPAN> sgQuestion = (<SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">MySubGraph</SPAN></SPAN></SPAN>)obj;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (SetPrintSelectedChildren(sgQuestion))<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sgQuestion.PrintsChildren = <SPAN style="COLOR: blue">true</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> changedPrintable;<BR></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">}<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></FONT></DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>private</FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">bool</SPAN> SetPrintSelectedChildren(<SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">MySubGraph</SPAN></SPAN></SPAN>)</FONT></P><DIV></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">bool</SPAN> printable = sg.Printable;<BR><BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">foreach</SPAN> (<SPAN style="COLOR: #2b91af">GoObject</SPAN> sgObj <SPAN style="COLOR: blue">in</SPAN> sg)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (goView1.Selection.Contains(sgObj))<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sgObj.Printable = <SPAN style="COLOR: blue">true</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>else<BR></FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sgObj.Printable = sg.Printable;<BR><BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>printable = printable || sgObj.Printable;<BR><BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (sgObj <SPAN style="COLOR: blue">is</SPAN> <SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">MySubGraph</SPAN></SPAN></SPAN>)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">var</SPAN> sgQuestion = (<SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">MySubGraph</SPAN></SPAN></SPAN>)sgObj;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (SetPrintSelectedChildren(sgQuestion))<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>printable = <SPAN style="COLOR: blue">true</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sgQuestion.PrintsChildren = <SPAN style="COLOR: blue">true</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<BR>&nbsp;</FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> printable;<BR></FONT></FONT></SPAN><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">}<BR><BR></SPAN><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">private</SPAN></FONT></FONT><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">void</SPAN> ClearPrintSelected()<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">foreach</SPAN> (<SPAN style="COLOR: #2b91af">GoObject</SPAN> obj <SPAN style="COLOR: blue">in</SPAN> goView1.Document)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>obj.Printable = <SPAN style="COLOR: blue">true</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (obj <SPAN style="COLOR: blue">is</SPAN> <SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">GoSubGraph</SPAN></SPAN>)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">GoSubGraph </SPAN></SPAN>sg = (<SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">GoSubGraph</SPAN></SPAN>)obj;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">foreach</SPAN> (<SPAN style="COLOR: #2b91af">GoObject</SPAN> sgObj <SPAN style="COLOR: blue">in</SPAN> sg)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sgObj.Printable = <SPAN style="COLOR: blue">true</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (sgObj <SPAN style="COLOR: blue">is</SPAN> <SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">GoSubGraph</SPAN></SPAN>)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ClearPrintSelectedChildren((<SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">GoSubGraph</SPAN></SPAN>)sgObj);<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>goView1.Document.ComputeBounds();<BR></FONT></FONT></SPAN><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">}<BR><BR></SPAN><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">private</SPAN></FONT></FONT><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">void</SPAN> ClearPrintSelectedChildren(<SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">GoSubGraph</SPAN></SPAN>sg)<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">foreach</SPAN> (<SPAN style="COLOR: #2b91af">GoObject</SPAN> sgObj <SPAN style="COLOR: blue">in</SPAN> sg)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sgObj.Printable = <SPAN style="COLOR: blue">true</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sg.PrintsChildren = <SPAN style="COLOR: blue">false</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (sgObj <SPAN style="COLOR: blue">is</SPAN> <SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">GoSubGraph</SPAN></SPAN>)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ClearPrintSelectedChildren((<SPAN style="COLOR: #2b91af"><SPAN style="COLOR: #2b91af">GoSubGraph</SPAN></SPAN>)sgObj);<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>}<BR></FONT></SPAN></SPAN></SPAN></pre></td></tr></table></DIV><DIV></DIV></DIV><DIV>Code from GoView sub-class:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"><BR><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>public</FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: #2b91af">SizeF</SPAN> PrintDocumentSize<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>get<BR></FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (Selection.Count &gt; 0)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: #2b91af">GoDocument</SPAN>.ComputeBounds(Selection, <SPAN style="COLOR: blue">this</SPAN>).Size;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>else<BR></FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: blue">base</SPAN>.PrintDocumentSize;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">}<BR><BR></SPAN><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">public</SPAN></FONT></FONT><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: #2b91af">PointF</SPAN> PrintDocumentTopLeft<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>get<BR></FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (Selection.Count &gt; 0)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: #2b91af">GoDocument</SPAN>.ComputeBounds(Selection, <SPAN style="COLOR: blue">this</SPAN>).Location;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>else<BR></FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: blue">base</SPAN>.PrintDocumentTopLeft;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>}<BR></FONT></SPAN></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>I also sub-classed GoSubGraph (referenced above as <SPAN style="COLOR: #2b91af"><FONT face="Lucida C&#111;nsole" size=2>MySubGraph):</FONT></SPAN></DIV><DIV><SPAN style="COLOR: #2b91af"><FONT face="Lucida C&#111;nsole" color=#000000 size=2><table width="99%"><tr><td><pre class="BBcode"><BR></FONT></SPAN><SPAN style="COLOR: #2b91af"><FONT color=#000000><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>private</FONT></SPAN><FONT size=2><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"> <SPAN style="COLOR: blue">bool</SPAN> _PrintsChildren = <SPAN style="COLOR: blue">false</SPAN>;<BR><BR></FONT></SPAN><FONT face="Verdana, Arial, Helvetica, sans-serif"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">public</SPAN></FONT></FONT><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">bool</SPAN> PrintsChildren<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>get<BR></FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> _PrintsChildren;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>set<BR></FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>_PrintsChildren = <SPAN style="COLOR: blue">value</SPAN>;<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<BR></FONT></FONT></SPAN><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">}<BR><BR></SPAN><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">public</SPAN></FONT></FONT><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: blue">bool</SPAN> CanPrint()<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: blue">base</SPAN>.CanPrint() || PrintsChildren;<BR></FONT></FONT></SPAN><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">}<BR><BR></SPAN><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes">protected</SPAN></FONT></FONT><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: blue">void</SPAN> PaintDecoration(<SPAN style="COLOR: #2b91af">Graphics</SPAN> g, <SPAN style="COLOR: #2b91af">GoView</SPAN> view)<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>{<BR></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (Printable)<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">base</SPAN>.PaintDecoration(g, view);<BR></FONT></FONT></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida C&#111;nsole'; mso-no-proof: yes"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>}<BR></FONT></SPAN></FONT></SPAN><SPAN style="COLOR: #2b91af"><FONT face="Lucida C&#111;nsole" color=#000000 size=2></pre></td></tr></table></FONT></SPAN></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 09 May 2008 09:57:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2572&amp;PID=10381#10381</guid>
  </item> 
  <item>
   <title>GoDiagram : Saving Global Settings of Layout in XML</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2578&amp;PID=10380#10380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=1983">Jake</a><br /><strong>Subject:</strong> Saving Global Settings of Layout in XML<br /><strong>Posted:</strong> 09 May 2008 at 9:34am<br /><br /><P>The GraphDoc is handled if there is a GoXmlBindingTransformer for it.</P><DIV>But, since you're using the lower level interface, the transformer you set up isn't used because the GraphDoc isn't a part of the Objects collection.&nbsp; So, you don't need the GraphDocXml transformer, just override GenerateRootAttributes:</DIV><P>protected override void GenerateRootAttributes() {<BR>&nbsp; GraphDoc doc = this.Objects as GraphDoc;<BR>&nbsp; if (doc != null) {<BR>&nbsp;&nbsp;&nbsp; WriteAttrVal(“docname”, doc.Name);<BR>&nbsp;&nbsp;&nbsp; WriteAttrVal(“lastpartid”, doc.LastPartID);<BR>&nbsp;&nbsp;&nbsp; WriteAttrVal(“papercolor”, doc.PaperColor);<BR>&nbsp;&nbsp;&nbsp; … etc …<BR>&nbsp; }<BR>}<BR>&nbsp;<BR>and similarly for the override of ConsumeRootAttributes.<BR></P>]]>
   </description>
   <pubDate>Fri, 09 May 2008 09:34:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2578&amp;PID=10380#10380</guid>
  </item> 
  <item>
   <title>GoDiagram : Support for Vista and Vista SP1</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2580&amp;PID=10379#10379</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=1983">Jake</a><br /><strong>Subject:</strong> Support for Vista and Vista SP1<br /><strong>Posted:</strong> 09 May 2008 at 7:11am<br /><br />Yes.&nbsp; We made changes in 2.5.2 to support installation on Vista, but no changes have been needed for Vista&nbsp;since then.&nbsp;]]>
   </description>
   <pubDate>Fri, 09 May 2008 07:11:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2580&amp;PID=10379#10379</guid>
  </item> 
  <item>
   <title>GoDiagram : Support for Vista and Vista SP1</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2580&amp;PID=10378#10378</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=544">sachin7ul</a><br /><strong>Subject:</strong> Support for Vista and Vista SP1<br /><strong>Posted:</strong> 09 May 2008 at 12:11am<br /><br /><DIV></DIV>We have upgraded to GoDiagram 3.0.2.2. I want to know if this version supports Vista fully?]]>
   </description>
   <pubDate>Fri, 09 May 2008 00:11:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2580&amp;PID=10378#10378</guid>
  </item> 
  <item>
   <title>GoDiagram : How to store background image into XML file</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2574&amp;PID=10376#10376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=1983">Jake</a><br /><strong>Subject:</strong> How to store background image into XML file<br /><strong>Posted:</strong> 08 May 2008 at 11:35am<br /><br /><P>The code the way the sample is (and the way you have it) should work for ondisk files.</P><P>e.g.</P><P>&lt;item id="4" label="Blue 1" iconname="C:\GoDiagram\Samples\StateCharter\App.ico" iconindex="-1" size="50 50" location="175 250" brushcolor="-2136090394" brushmidcolor="none" brushforecolor="none" brushmidfraction="NaN" brushbrushstyle="Solid" /&gt;</P>]]>
   </description>
   <pubDate>Thu, 08 May 2008 11:35:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2574&amp;PID=10376#10376</guid>
  </item> 
  <item>
   <title>GoDiagram : Box Resizing Problem</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2577&amp;PID=10375#10375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=1983">Jake</a><br /><strong>Subject:</strong> Box Resizing Problem<br /><strong>Posted:</strong> 08 May 2008 at 8:07am<br /><br />GoGroup.LayoutChildren reference says this: <DIV>&nbsp;</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV>Implementations of this method probably should not refer, directly or indirectly, to this group's <a href="mk:@MSITStore:C:\GoDiagram\Docs\Help\Win2.0\GoWin.chm::/html/38b30a5c-02c7-d57a-1691-dcda7748966c.htm" target="_blank">GoObject</A>.<a href="mk:@MSITStore:C:\GoDiagram\Docs\Help\Win2.0\GoWin.chm::/html/e90a4f89-955c-179f-3107-a5929ec8d8b6.htm" target="_blank">Bounds</A> property. Instead, you should just position and size the children based on the bounds of the children (not this group's bounds), and let this group's bounds be determined by the union of the bounds of the children. </DIV><DIV><P>For groups that may have many children, overrides will often check the <a href="mk:@MSITStore:C:\GoDiagram\Docs\Help\Win2.0\GoWin.chm::/html/38b30a5c-02c7-d57a-1691-dcda7748966c.htm" target="_blank">GoObject</A>.<a href="mk:@MSITStore:C:\GoDiagram\Docs\Help\Win2.0\GoWin.chm::/html/8c16c931-63eb-ba57-6c65-7770e4d2494b.htm" target="_blank">Initializing</A> flag. If true, this method usually does nothing; later when all the changes have been performed is that flag set to false and this method is called explicitly with a null argument. </P></DIV></BLOCKQUOTE><DIV dir=ltr>so, I can't explain why the port is causing the problem, but I'd look first to the use of this.Bounds.&nbsp;&nbsp; Look at how BoxArea.cs in Demo1 works.</DIV>]]>
   </description>
   <pubDate>Thu, 08 May 2008 08:07:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2577&amp;PID=10375#10375</guid>
  </item> 
  <item>
   <title>GoDiagram : Layout Problem - Stopping</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2576&amp;PID=10374#10374</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=1983">Jake</a><br /><strong>Subject:</strong> Layout Problem - Stopping<br /><strong>Posted:</strong> 08 May 2008 at 7:59am<br /><br />GoView draws all contents... the OnPaint event is delivered from Windows to fix up invalidated parts of this view.<DIV>&nbsp;</DIV><DIV>But, that shouldn't happen if your code is cranking away doing something... the OnPaint won't happen until your code returns control back to the app main loop.</DIV><DIV>&nbsp;</DIV><DIV>So... I guess you could override Paint in your comment class&nbsp;and set a breakpoint there.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; public override void Paint(Graphics g, GoView view) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.Paint(g, view);<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;</DIV><DIV>hint:&nbsp;breakpoints at Paint require the debugger and application to not cover each other, or you hit the breakpoint for Paint each time the debug window uncovers the app.&nbsp; <BR></DIV>]]>
   </description>
   <pubDate>Thu, 08 May 2008 07:59:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2576&amp;PID=10374#10374</guid>
  </item> 
  <item>
   <title>GoDiagram : Saving Global Settings of Layout in XML</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2578&amp;PID=10373#10373</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=2493">sudhanshu</a><br /><strong>Subject:</strong> Saving Global Settings of Layout in XML<br /><strong>Posted:</strong> 08 May 2008 at 7:35am<br /><br />Dear,<DIV>&nbsp;</DIV><DIV>&nbsp; I am using <FONT color=#008080 size=2>GoXmlTransformer <FONT color=#000000>facility to save and retrieve the objects of a graph doc like Node and Link. and they are coming perfect.</FONT></FONT></DIV><DIV><FONT size=2>Now i want to save some global setting for GoDocument itself and i want to do it using <FONT color=#008080>GoXmlTransformer </FONT><FONT color=#000000>not <FONT color=#008080 size=2>GoXmlBindingTransformer<FONT color=#000000>.</FONT></FONT></FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>For this i have created DocXml class. code is blow.</FONT></DIV><FONT color=#0000ff size=2><P>public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>class</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GraphDocXml</FONT><FONT size=2> : </FONT><FONT color=#008080 size=2>GoXmlTransformer</P></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> GraphDocXml()</P><P>{</P><P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.TransformerType = </FONT><FONT color=#0000ff size=2>typeof</FONT><FONT size=2>(</FONT><FONT color=#008080 size=2>GraphDoc</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.ElementName = </FONT><FONT color=#800000 size=2>"View"</FONT><FONT size=2>;</P><P>}</P><P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>override</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> GenerateAttributes(</FONT><FONT color=#0000ff size=2>object</FONT><FONT size=2> obj)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>base</FONT><FONT size=2>.GenerateAttributes(obj);</P><P></FONT><FONT color=#008080 size=2>GraphView</FONT><FONT size=2> gView = ((</FONT><FONT color=#008080 size=2>GraphDoc</FONT><FONT size=2>)obj).GetView;</P><P></P><P>WriteAttrVal(</FONT><FONT color=#800000 size=2>"BackColor"</FONT><FONT size=2>, gView.BackColor);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>override</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> ConsumeAttributes(</FONT><FONT color=#008080 size=2>Object</FONT><FONT size=2> obj)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>base</FONT><FONT size=2>.ConsumeAttributes(obj);</P><P></FONT><FONT color=#008080 size=2>GraphView</FONT><FONT size=2> gView = ((</FONT><FONT color=#008080 size=2>GraphDoc</FONT><FONT size=2>)obj).GetView;</P><P>gView.BackColor = ColorAttr(</FONT><FONT color=#800000 size=2>"BackColor"</FONT><FONT size=2>, gView.BackColor);</P><P>}</P><P>}</P><DIV></DIV><P>&nbsp;</P><P>using this class i am trying to save&nbsp;GoView Background color. i have added the transformer as well. but when i Call the Generate of wrtitter it doesn't invoke the generateAttiribute of DocXMl class.</P><DIV></DIV><DIV></DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> OpenXml(</FONT><FONT color=#008080 size=2>Stream</FONT><FONT size=2> stream)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.StartTransaction();</P><P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.Clear();</P><P></FONT><FONT color=#008080 size=2>GoXmlReader</FONT><FONT size=2> reader = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GoXmlReader</FONT><FONT size=2>();</P><P>reader.AddTransformer(</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GraphDocXml</FONT><FONT size=2>());</P><P>reader.AddTransformer(</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GraphNodeXml</FONT><FONT size=2>());</P><P>reader.AddTransformer(</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GraphLinkXml</FONT><FONT size=2>());</P><P></P><P>reader.RootObject = </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>;</P><P>reader.Consume(stream);</P><P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.FinishTransaction(</FONT><FONT color=#800000 size=2>"Loaded from file"</FONT><FONT size=2>);</P><P>}</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>string</FONT><FONT size=2> SaveXml(</FONT><FONT color=#008080 size=2>Stream</FONT><FONT size=2> stream)</P><P>{</P><P></FONT><FONT color=#008080 size=2>GoXmlWriter</FONT><FONT size=2> writer = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GoXmlWriter</FONT><FONT size=2>();</P><P>writer.RootElementName = </FONT><FONT color=#800000 size=2>"Layout"</FONT><FONT size=2>;</P><P>writer.AddTransformer(</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GraphDocXml</FONT><FONT size=2>());</P><P>writer.AddTransformer(</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GraphNodeXml</FONT><FONT size=2>());</P><P>writer.AddTransformer(</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GraphLinkXml</FONT><FONT size=2>());</P><P></P><P>writer.Objects = </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>;</P><P>writer.Generate(stream);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>AppUtils</FONT><FONT size=2>.GetXmlText(stream);</P><P>}</P></FONT><DIV></DIV><DIV>&nbsp;</DIV><DIV>it is urgent.</DIV></FONT>]]>
   </description>
   <pubDate>Thu, 08 May 2008 07:35:13 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2578&amp;PID=10373#10373</guid>
  </item> 
  <item>
   <title>GoDiagram : How to store background image into XML file</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2574&amp;PID=10372#10372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=2894">senthilaj</a><br /><strong>Subject:</strong> How to store background image into XML file<br /><strong>Posted:</strong> 08 May 2008 at 1:06am<br /><br /><P>Image is load from External files. For each Type of product get individual images.</P>]]>
   </description>
   <pubDate>Thu, 08 May 2008 01:06:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2574&amp;PID=10372#10372</guid>
  </item> 
  <item>
   <title>GoDiagram : Box Resizing Problem</title>
   <link>http://www.nwoods.com/forum/forum_posts.asp?TID=2577&amp;PID=10371#10371</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.nwoods.com/forum/member_profile.asp?PF=2573">huanyue</a><br /><strong>Subject:</strong> Box Resizing Problem<br /><strong>Posted:</strong> 07 May 2008 at 5:31pm<br /><br />public override void LayoutChildren(GoObject childchanged)<br>{<br>&nbsp;&nbsp;&nbsp; if (Initializing)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if (_border != null &amp;&amp; _topLeftLabel != null &amp;&amp; _port != null)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _border.Bounds = this.Bounds;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RectangleF rect = _border.Bounds;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _topLeftLabel.SetSpotLocation(TopLeft, new PointF(rect.X+2, rect.Y+2));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _port.Position = _topLeftLabel.Position;<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>======================<br><br>class NodePort : GoPort<br>{<br>&nbsp;&nbsp;&nbsp; private bool myKeepsLinksBetweenRemoved;<br><br>&nbsp;&nbsp;&nbsp; public const int ChangedMaxLinks = LastChangedHint + 10011;<br>&nbsp;&nbsp;&nbsp; public const int ChangedKeepsLinksWhenRemoved = LastChangedHint + 10012;<br><br>&nbsp;&nbsp;&nbsp; public NodePort() : base()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Selectable = false;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Movable = false;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsValidDuplicateLinks = false;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Style = GoPortStyle.None;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FromSpot = NoSpot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToSpot = NoSpot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KeepsLinksBetweenRemoved = true;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; public override void CopyObject(GoCopyDictionary env)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NodePort p = (NodePort)base.CopyObject(env);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (p != null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p.Brush = null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return p;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; public override void ChangeValue(GoChangedEventArgs e, bool undo)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch (e.SubHint)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case ChangedMaxLinks:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case ChangedKeepsLinksWhenRemoved:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.KeepsLinksBetweenRemoved = (bool)e.GetValue(undo);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.ChangeValue(e, undo);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; bool KeepsLinksBetweenRemoved<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return myKeepsLinksBetweenRemoved;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool old = myKeepsLinksBetweenRemoved;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (old != value)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myKeepsLinksBetweenRemoved = value;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Changed(ChangedKeepsLinksWhenRemoved, 0, old, NullRect, 0, value, NullRect);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; public override PointF GetLinkPointFromPoint(PointF p)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GoRectangle rect = new GoRectangle();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rect.Size = this.ParentNode.Bounds.Size;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rect.Location = this.ParentNode.Bounds.Location;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PointF p1 = new PointF(0,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rect.GetNearestIntersectionPoint(p, this.ParentNode.Center, out p1);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return p1;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; protected override void OnLayerChanged(GoLayer oldLayer,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GoLayer newLayer, GoObject mainObj)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Perform NOOP rather than call base method<br>&nbsp;&nbsp;&nbsp; }<br>}<br>]]>
   </description>
   <pubDate>Wed, 07 May 2008 17:31:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.nwoods.com/forum/forum_posts.asp?TID=2577&amp;PID=10371#10371</guid>
  </item> 
 </channel>
</rss>