<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Marengo</title>
	<atom:link href="http://www.martyndavis.com/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.martyndavis.com</link>
	<description>Martyn&#039;s Development, Electronics &#38; Gadget Weblog</description>
	<lastBuildDate>Thu, 25 Apr 2013 17:36:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Peter G Holm</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98366</link>
		<dc:creator>Peter G Holm</dc:creator>
		<pubDate>Thu, 25 Apr 2013 17:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98366</guid>
		<description><![CDATA[Thank you sir.! Your code works well  and it seems that I can use it in my project. It makes it much easier to work with the treeview.

In case that other newcomers like me are in doubt  how to use your class, maybe it&#039;s a good idea  you tell the newcomer that you have written about it in the blog.

I guess one side-effect of that could be that more people also writes in the blog :-)]]></description>
		<content:encoded><![CDATA[<p>Thank you sir.! Your code works well  and it seems that I can use it in my project. It makes it much easier to work with the treeview.</p>
<p>In case that other newcomers like me are in doubt  how to use your class, maybe it&#8217;s a good idea  you tell the newcomer that you have written about it in the blog.</p>
<p>I guess one side-effect of that could be that more people also writes in the blog :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Martyn</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98342</link>
		<dc:creator>Martyn</dc:creator>
		<pubDate>Thu, 25 Apr 2013 12:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98342</guid>
		<description><![CDATA[Assuming you&#039;ve got a form called MainWindow then in MainWindow.cs in your project explorer you&#039;ll see some code like this:

[code]
using System;
using Gtk;

public partial class MainWindow: Gtk.Window
{	
	public MainWindow (): base (Gtk.WindowType.Toplevel)
	{
		Build ();
	}
	
	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}
}
[/code]

The function with the Build() in it is the class&#039;s constructor (i.e. the form&#039;s constructor). You can put your code in there after the Build() line.

Any controls you&#039;ve added to the form (in this case the TreeView) will be in scope here (note it&#039;s a partial class, the rest of the class is built by the designer) so, assuming you&#039;ve given the name &quot;tvTest&quot; to it in the stetic designer then you can use

[code]
SimpleTreeView tree=new SimpleTreeView(tvTest);
[/code]]]></description>
		<content:encoded><![CDATA[<p>Assuming you&#8217;ve got a form called MainWindow then in MainWindow.cs in your project explorer you&#8217;ll see some code like this:</p>
<pre class="brush: plain; title: ; notranslate">
using System;
using Gtk;

public partial class MainWindow: Gtk.Window
{	
	public MainWindow (): base (Gtk.WindowType.Toplevel)
	{
		Build ();
	}
	
	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}
}
</pre>
<p>The function with the Build() in it is the class&#8217;s constructor (i.e. the form&#8217;s constructor). You can put your code in there after the Build() line.</p>
<p>Any controls you&#8217;ve added to the form (in this case the TreeView) will be in scope here (note it&#8217;s a partial class, the rest of the class is built by the designer) so, assuming you&#8217;ve given the name &#8220;tvTest&#8221; to it in the stetic designer then you can use</p>
<pre class="brush: plain; title: ; notranslate">
SimpleTreeView tree=new SimpleTreeView(tvTest);
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Peter G Holm</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98338</link>
		<dc:creator>Peter G Holm</dc:creator>
		<pubDate>Thu, 25 Apr 2013 11:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98338</guid>
		<description><![CDATA[That sound great.
If you have further patience with me :), so please can you tell 
where is the &#039;Forms Constructor &#039; , you are referring to.?
Also I would like to know, where am I supposed to add your class. 

Finally, this 
&#039;SimpleTreeView tree=new SimpleTreeView(controlOnForm);&#039; 
the controlOnForm, is that the same as the name I put in properties-pane in stetic designer.? 
If so, how am I supposed to access it - as it iss burried within the autogenerated gtk-gui/MainWindow - file.?]]></description>
		<content:encoded><![CDATA[<p>That sound great.<br />
If you have further patience with me :), so please can you tell<br />
where is the &#8216;Forms Constructor &#8216; , you are referring to.?<br />
Also I would like to know, where am I supposed to add your class. </p>
<p>Finally, this<br />
&#8216;SimpleTreeView tree=new SimpleTreeView(controlOnForm);&#8217;<br />
the controlOnForm, is that the same as the name I put in properties-pane in stetic designer.?<br />
If so, how am I supposed to access it &#8211; as it iss burried within the autogenerated gtk-gui/MainWindow &#8211; file.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Martyn</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98314</link>
		<dc:creator>Martyn</dc:creator>
		<pubDate>Thu, 25 Apr 2013 06:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98314</guid>
		<description><![CDATA[Sorry Peter, I&#039;m starting to see the problem here - not sure how but some of the code is lost because of HTML interpretation.

As we are using System.Collections.Generic at the top that&#039;s a clue that we&#039;re not using non-generic collections, and those lines you quote have no type parameter.

They should actually read:

List&lt;Gtk.TreeViewColumn&gt; _cols;
List&lt;Gtk.CellRendererText&gt; _cells;

As angle brackets are used in HTML to specify tags I can see why they disappeared! I&#039;m going to replace the whole code section as I see other bits like this aren&#039;t displaying.

&lt;strong&gt;Edit:&lt;/strong&gt; The code in the article has now been replaced.]]></description>
		<content:encoded><![CDATA[<p>Sorry Peter, I&#8217;m starting to see the problem here &#8211; not sure how but some of the code is lost because of HTML interpretation.</p>
<p>As we are using System.Collections.Generic at the top that&#8217;s a clue that we&#8217;re not using non-generic collections, and those lines you quote have no type parameter.</p>
<p>They should actually read:</p>
<p>List&lt;Gtk.TreeViewColumn&gt; _cols;<br />
List&lt;Gtk.CellRendererText&gt; _cells;</p>
<p>As angle brackets are used in HTML to specify tags I can see why they disappeared! I&#8217;m going to replace the whole code section as I see other bits like this aren&#8217;t displaying.</p>
<p><strong>Edit:</strong> The code in the article has now been replaced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Peter G Holm</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98267</link>
		<dc:creator>Peter G Holm</dc:creator>
		<pubDate>Wed, 24 Apr 2013 19:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98267</guid>
		<description><![CDATA[That was very funny. In my browser I see &quot;&amp;lt&quot;  in your for-loops.

After reading you last post here - I installed Opera - same result. Chromium - Same result. And finally Google Chrome, and now I see your code as it should be :).

But Ok, I copie-pasted the code from Chrome. And now no errors within the foor-loops. 

But the compiler still complains about the 
List _cols;
List _cells; 
part
giving the error:
&quot;Error CS0305: Using the generic type `System.Collections.Generic.List&#039; requires `1&#039; type argument(s) (CS0305) (A6)&quot;]]></description>
		<content:encoded><![CDATA[<p>That was very funny. In my browser I see &#8220;&amp;lt&#8221;  in your for-loops.</p>
<p>After reading you last post here &#8211; I installed Opera &#8211; same result. Chromium &#8211; Same result. And finally Google Chrome, and now I see your code as it should be :).</p>
<p>But Ok, I copie-pasted the code from Chrome. And now no errors within the foor-loops. </p>
<p>But the compiler still complains about the<br />
List _cols;<br />
List _cells;<br />
part<br />
giving the error:<br />
&#8220;Error CS0305: Using the generic type `System.Collections.Generic.List&#8217; requires `1&#8242; type argument(s) (CS0305) (A6)&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Martyn</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98259</link>
		<dc:creator>Martyn</dc:creator>
		<pubDate>Wed, 24 Apr 2013 17:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98259</guid>
		<description><![CDATA[Looking at the code in Pastebin which you sent privately it looks like you&#039;re hitting problems in the code you&#039;re copying from this site where the &quot;less than&quot; symbol (&lt;) is being copied as &quot;&lt;&quot; (which is an HTML code for it).

Instead of commenting out parts of that for  loop, search your code for the string &quot;&lt;&quot; and replace it with &quot;&lt;&quot;.

The confusing thing is when you post your code here any HTML entities such as &lt; get displayed as the character they represent :)]]></description>
		<content:encoded><![CDATA[<p>Looking at the code in Pastebin which you sent privately it looks like you&#8217;re hitting problems in the code you&#8217;re copying from this site where the &#8220;less than&#8221; symbol (<) is being copied as &#8220;&amp;lt;&#8221; (which is an HTML code for it).</p>
<p>Instead of commenting out parts of that for  loop, search your code for the string &#8220;&amp;lt;&#8221; and replace it with &#8220;<&#8220;.</p>
<p>The confusing thing is when you post your code here any HTML entities such as &amp;lt; get displayed as the character they represent :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Peter G Holm</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98252</link>
		<dc:creator>Peter G Holm</dc:creator>
		<pubDate>Wed, 24 Apr 2013 16:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98252</guid>
		<description><![CDATA[Of course the for state-ment is like this.

  for(int n=0; n&lt;/*_cols.Count;*/ ++n){

the n&lt; thing was a typo. If you want, edit away the typo from the last post and remove this one.]]></description>
		<content:encoded><![CDATA[<p>Of course the for state-ment is like this.</p>
<p>  for(int n=0; n&lt;/*_cols.Count;*/ ++n){</p>
<p>the n&lt; thing was a typo. If you want, edit away the typo from the last post and remove this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Peter G Holm</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98250</link>
		<dc:creator>Peter G Holm</dc:creator>
		<pubDate>Wed, 24 Apr 2013 16:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98250</guid>
		<description><![CDATA[I found that, afterall - the problem is in the for-statement.

I commented out   _cols.Count; .

for(int n=0; n&lt; /* _cols.Count;*/ ++n).

AFAIK, that does no harm.?

But now it halts on the List declaration at the very beginning. 

 List _cols;
 ***CS0305: Using the generic type `Stack&#039; requires `1&#039; type argument(s)***

Maybe i am not implanting the code right. I am very new to MonoDevelop, and to gui-programming in general. So any advices would be avesome.

Is it to much ask for a working project.?

Other than that- your code seems to be very good, and I am sure that I could earn a lot from it If I only can get it to work,]]></description>
		<content:encoded><![CDATA[<p>I found that, afterall &#8211; the problem is in the for-statement.</p>
<p>I commented out   _cols.Count; .</p>
<p>for(int n=0; n&lt; /* _cols.Count;*/ ++n).</p>
<p>AFAIK, that does no harm.?</p>
<p>But now it halts on the List declaration at the very beginning. </p>
<p> List _cols;<br />
 ***CS0305: Using the generic type `Stack&#8217; requires `1&#8242; type argument(s)***</p>
<p>Maybe i am not implanting the code right. I am very new to MonoDevelop, and to gui-programming in general. So any advices would be avesome.</p>
<p>Is it to much ask for a working project.?</p>
<p>Other than that- your code seems to be very good, and I am sure that I could earn a lot from it If I only can get it to work,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Peter G Holm</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98209</link>
		<dc:creator>Peter G Holm</dc:creator>
		<pubDate>Wed, 24 Apr 2013 09:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98209</guid>
		<description><![CDATA[No, it works well.
Just to simplivatcate the problem with the code I coied from you, I added the class to the  same file as the consoleapplcaton. Without tryng to acces the class, so no errors could be because of that.

Still the same problem.
If you wish I can send the project and the build log.]]></description>
		<content:encoded><![CDATA[<p>No, it works well.<br />
Just to simplivatcate the problem with the code I coied from you, I added the class to the  same file as the consoleapplcaton. Without tryng to acces the class, so no errors could be because of that.</p>
<p>Still the same problem.<br />
If you wish I can send the project and the build log.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a GTK# TreeView Widget in C# &#8211; Very Simply by Martyn</title>
		<link>http://www.martyndavis.com/?p=357&#038;cpage=1#comment-98196</link>
		<dc:creator>Martyn</dc:creator>
		<pubDate>Wed, 24 Apr 2013 06:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.martyndavis.com/?p=357#comment-98196</guid>
		<description><![CDATA[Interesting, does this tiny test program fail as well? It works for me in MonoDevelop 3.0.3.2 and Visual Studio 2012:

Type[] t = new Type[3];
t[0] = typeof(string);
t[1] = typeof(int);
t[2] = typeof(decimal);
foreach (var x in t)
{
  Console.WriteLine(x);
}]]></description>
		<content:encoded><![CDATA[<p>Interesting, does this tiny test program fail as well? It works for me in MonoDevelop 3.0.3.2 and Visual Studio 2012:</p>
<p>Type[] t = new Type[3];<br />
t[0] = typeof(string);<br />
t[1] = typeof(int);<br />
t[2] = typeof(decimal);<br />
foreach (var x in t)<br />
{<br />
  Console.WriteLine(x);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
