<?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[[TTreeView] Suchen und Weitersuchen!]]></title><description><![CDATA[<p>Vielleicht findet der eine oder der andere etwas nüzliches darin.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  static int iIndex;
  static int iAnzahl;
  if(Button1-&gt;Caption == &quot;Suchen&quot;)
  {
    iIndex = -1;
    iAnzahl = 0;
    Button1-&gt;Caption = &quot;Weiter suchen&quot;;
  }//if(Button1...

  for(iIndex += 1; iIndex &lt; TreeView1-&gt;Items-&gt;Count; iIndex++)
  {
    if(TreeView1-&gt;Items-&gt;Item[iIndex]-&gt;Text == Edit1-&gt;Text)
    {
      iAnzahl++;
      iIndex = TreeView1-&gt;Items-&gt;Item[iIndex]-&gt;AbsoluteIndex;
      TreeView1-&gt;Items-&gt;Item[iIndex]-&gt;Selected = true;
      TreeView1-&gt;SetFocus();
      return;
    }//if(TreeView1...
  }//for(iIndex...

  ShowMessage(&quot;Ende erreicht. &quot; + IntToStr(iAnzahl) + &quot; Treffer!&quot;);
  Button1-&gt;Caption = &quot;Suchen&quot;;
  Edit1-&gt;SetFocus();
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/88815/ttreeview-suchen-und-weitersuchen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 01:13:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88815.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Oct 2004 13:41:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [TTreeView] Suchen und Weitersuchen! on Wed, 13 Oct 2004 13:41:31 GMT]]></title><description><![CDATA[<p>Vielleicht findet der eine oder der andere etwas nüzliches darin.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  static int iIndex;
  static int iAnzahl;
  if(Button1-&gt;Caption == &quot;Suchen&quot;)
  {
    iIndex = -1;
    iAnzahl = 0;
    Button1-&gt;Caption = &quot;Weiter suchen&quot;;
  }//if(Button1...

  for(iIndex += 1; iIndex &lt; TreeView1-&gt;Items-&gt;Count; iIndex++)
  {
    if(TreeView1-&gt;Items-&gt;Item[iIndex]-&gt;Text == Edit1-&gt;Text)
    {
      iAnzahl++;
      iIndex = TreeView1-&gt;Items-&gt;Item[iIndex]-&gt;AbsoluteIndex;
      TreeView1-&gt;Items-&gt;Item[iIndex]-&gt;Selected = true;
      TreeView1-&gt;SetFocus();
      return;
    }//if(TreeView1...
  }//for(iIndex...

  ShowMessage(&quot;Ende erreicht. &quot; + IntToStr(iAnzahl) + &quot; Treffer!&quot;);
  Button1-&gt;Caption = &quot;Suchen&quot;;
  Edit1-&gt;SetFocus();
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/627769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/627769</guid><dc:creator><![CDATA[xxs]]></dc:creator><pubDate>Wed, 13 Oct 2004 13:41:31 GMT</pubDate></item><item><title><![CDATA[Reply to [TTreeView] Suchen und Weitersuchen! on Wed, 13 Oct 2004 14:19:55 GMT]]></title><description><![CDATA[<p>Vielen Dank!</p>
<p>Das SetFocus hat mir noch gefehlt! Ich weiss zwar noch nicht so genau für was es da ist, nur das es irgendwie die Tastaturereignisse aufnimmt, naja vielleicht verstehe ich das auch noch irgendwann!</p>
<p>T.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/627824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/627824</guid><dc:creator><![CDATA[Thorben]]></dc:creator><pubDate>Wed, 13 Oct 2004 14:19:55 GMT</pubDate></item><item><title><![CDATA[Reply to [TTreeView] Suchen und Weitersuchen! on Fri, 15 Oct 2004 19:16:27 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> FAQ</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629738</guid><dc:creator><![CDATA[aha!]]></dc:creator><pubDate>Fri, 15 Oct 2004 19:16:27 GMT</pubDate></item></channel></rss>