<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[TreeViews with GeListHead and a checkbox column can lock up C4D]]></title><description><![CDATA[<p dir="auto">Just came across a bug that took me about 2 hours to figure out.</p>
<ol>
<li>Create a AutoAlloc&lt;GeListHead&gt; and add some child nodes. Store this in a GeDialog.</li>
<li>In your GeDialog create a TreeView. Set the TreeViewCustomGui-&gt;SetRoot( mygelisthead-&gt;GetFirst(), &amp;treeviewfuncs, this));</li>
<li>In your TreeViewFunctions::GetFirst() { return root;}</li>
<li>When setting your treeview layouts, add a checkbox. layout.SetInt32(TREE_COLUMNS_CHECK, LV_CHECKBOX);</li>
<li>Implement the functions for IsChecked and SetCheck</li>
<li>Run your code and when you click on the checkbox it will enter an endless loop somewhere in the c4dplugins code.</li>
</ol>
<p dir="auto">The reason for this is (2). Instead of calling SetRoot(mygelisthead-&gt;GetFirst()...). I should have just passed in the GeListHead.</p>
<p dir="auto">Then for (3) I should have returned the First element: GeListHead <em>op = (GeListHead</em>)root; return op-&gt;GetFirst();</p>
<p dir="auto">With these changes it works, but that took a while to figure out.</p>
]]></description><link>http://developers.maxon.net/forum/topic/11043/treeviews-with-gelisthead-and-a-checkbox-column-can-lock-up-c4d</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 20:31:25 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/11043.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Sep 2018 23:18:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TreeViews with GeListHead and a checkbox column can lock up C4D on Mon, 01 Oct 2018 21:07:34 GMT]]></title><description><![CDATA[<p dir="auto">There is no question here. Just a bug report and a warning/info to other users if they get C4D locking up when using a treeview.</p>
]]></description><link>http://developers.maxon.net/forum/post/55881</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55881</guid><dc:creator><![CDATA[kbar]]></dc:creator><pubDate>Mon, 01 Oct 2018 21:07:34 GMT</pubDate></item><item><title><![CDATA[Reply to TreeViews with GeListHead and a checkbox column can lock up C4D on Mon, 01 Oct 2018 11:57:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi Kent,</p>
<p dir="auto">I'm not quite sure, if there's a question left in here?<br />
From what I understand, we probably need to improve the TreeView documentation. But there's no bug involved on our side, right?</p>
<p dir="auto">Cheers,<br />
Andreas</p>
]]></description><link>http://developers.maxon.net/forum/post/55873</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55873</guid><dc:creator><![CDATA[a_block]]></dc:creator><pubDate>Mon, 01 Oct 2018 11:57:27 GMT</pubDate></item></channel></rss>