<?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[TreeView farbige Einträge]]></title><description><![CDATA[<p>Hallo,</p>
<p>habe bereits die Beiträge über das Einfärben einer ListBox sowie eines StringGrids in den FAQ gelesen, habe dennoch beim farbigen Markieren einzelner Einträge im TreeView Probleme.</p>
<p>Ich möchte gerne alle Items eines TreeViews farbig darstellen, die anderen nicht.</p>
<p>[cpp]<br />
void __fastcall TForm1::TreeView1CustomDrawItem(TCustomTreeView *Sender,<br />
TTreeNode *Node, TCustomDrawState State, bool &amp;DefaultDraw)<br />
{<br />
for (...)<br />
{<br />
if (TreeView1-&gt;Items-&gt;Item[i]-&gt;Level==0)<br />
TreeView1-&gt;Canvas-&gt;Font-&gt;Color=clRed;<br />
else<br />
TreeView1-&gt;Canvas-&gt;Font-&gt;Color=clBlack;<br />
}<br />
}</p>
<p>Das ganze funktioniert leider nicht. Was mach ich da falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/185484/treeview-farbige-einträge</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 11:09:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/185484.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Jun 2007 09:44:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TreeView farbige Einträge on Tue, 26 Jun 2007 09:44:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>habe bereits die Beiträge über das Einfärben einer ListBox sowie eines StringGrids in den FAQ gelesen, habe dennoch beim farbigen Markieren einzelner Einträge im TreeView Probleme.</p>
<p>Ich möchte gerne alle Items eines TreeViews farbig darstellen, die anderen nicht.</p>
<p>[cpp]<br />
void __fastcall TForm1::TreeView1CustomDrawItem(TCustomTreeView *Sender,<br />
TTreeNode *Node, TCustomDrawState State, bool &amp;DefaultDraw)<br />
{<br />
for (...)<br />
{<br />
if (TreeView1-&gt;Items-&gt;Item[i]-&gt;Level==0)<br />
TreeView1-&gt;Canvas-&gt;Font-&gt;Color=clRed;<br />
else<br />
TreeView1-&gt;Canvas-&gt;Font-&gt;Color=clBlack;<br />
}<br />
}</p>
<p>Das ganze funktioniert leider nicht. Was mach ich da falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1313859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1313859</guid><dc:creator><![CDATA[Todd]]></dc:creator><pubDate>Tue, 26 Jun 2007 09:44:26 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView farbige Einträge on Tue, 26 Jun 2007 10:04:32 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>versuche es mal <strong>ohne</strong> <em>for</em> und damit hier:</p>
<pre><code class="language-cpp">if(Node-&gt;Level==0)
</code></pre>
<p>MfG<br />
-yanix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1313877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1313877</guid><dc:creator><![CDATA[yanix]]></dc:creator><pubDate>Tue, 26 Jun 2007 10:04:32 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView farbige Einträge on Tue, 26 Jun 2007 10:06:49 GMT]]></title><description><![CDATA[<p>Danke für die schnelle Hilfe, klappt wunderbar.</p>
<p>Thx <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /><br />
Todd</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1313880</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1313880</guid><dc:creator><![CDATA[Todd]]></dc:creator><pubDate>Tue, 26 Jun 2007 10:06:49 GMT</pubDate></item></channel></rss>