<?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[Event für Dynamische TListBox erstellen]]></title><description><![CDATA[<p>Hy,</p>
<p>wie unten angegeben erstelle ich dynamisch meine ListBoxen</p>
<p>nun will ich aber dem, auch noch einen onklick event hinzufügen.</p>
<p>Wie kann ich das machen ?</p>
<pre><code class="language-cpp">tTabSheet.Length++;  //Dynamisches Array hochzählen bei jedem Durchlauf

 tTabSheet[tTabSheet.Length-1] = new TTabSheet( PageControl1 );
 tTabSheet[tTabSheet.Length-1]-&gt;Name = &quot;Tab_&quot; + IntToStr(tTabSheet.Length);
 tTabSheet[tTabSheet.Length-1]-&gt;PageControl = PageControl1;
 tTabSheet[tTabSheet.Length-1]-&gt;Parent = PageControl1;
 tTabSheet[tTabSheet.Length-1]-&gt;Caption = (String)cName;
 tTabSheet[tTabSheet.Length-1]-&gt;Show();

 lList.Length++;      //Dynamisches Array hochzählen bei jedem Durchlauf

 lList[lList.Length-1]= new TListBox( tTabSheet[tTabSheet.Length-1] );
 lList[lList.Length-1]-&gt;Name = &quot;List_&quot; + IntToStr(lList.Length);
 lList[lList.Length-1]-&gt;Parent = tTabSheet[tTabSheet.Length-1];
 lList[lList.Length-1]-&gt;Align = alClient;
 lList[lList.Length-1]-&gt;Items-&gt;Clear();
 lList[lList.Length-1]-&gt;Style=lbStandard;
 lList[lList.Length-1]-&gt;MultiSelect=false;

 PageControl1-&gt;Refresh();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/124501/event-für-dynamische-tlistbox-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 01:03:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/124501.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Oct 2005 07:58:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Event für Dynamische TListBox erstellen on Fri, 28 Oct 2005 07:58:02 GMT]]></title><description><![CDATA[<p>Hy,</p>
<p>wie unten angegeben erstelle ich dynamisch meine ListBoxen</p>
<p>nun will ich aber dem, auch noch einen onklick event hinzufügen.</p>
<p>Wie kann ich das machen ?</p>
<pre><code class="language-cpp">tTabSheet.Length++;  //Dynamisches Array hochzählen bei jedem Durchlauf

 tTabSheet[tTabSheet.Length-1] = new TTabSheet( PageControl1 );
 tTabSheet[tTabSheet.Length-1]-&gt;Name = &quot;Tab_&quot; + IntToStr(tTabSheet.Length);
 tTabSheet[tTabSheet.Length-1]-&gt;PageControl = PageControl1;
 tTabSheet[tTabSheet.Length-1]-&gt;Parent = PageControl1;
 tTabSheet[tTabSheet.Length-1]-&gt;Caption = (String)cName;
 tTabSheet[tTabSheet.Length-1]-&gt;Show();

 lList.Length++;      //Dynamisches Array hochzählen bei jedem Durchlauf

 lList[lList.Length-1]= new TListBox( tTabSheet[tTabSheet.Length-1] );
 lList[lList.Length-1]-&gt;Name = &quot;List_&quot; + IntToStr(lList.Length);
 lList[lList.Length-1]-&gt;Parent = tTabSheet[tTabSheet.Length-1];
 lList[lList.Length-1]-&gt;Align = alClient;
 lList[lList.Length-1]-&gt;Items-&gt;Clear();
 lList[lList.Length-1]-&gt;Style=lbStandard;
 lList[lList.Length-1]-&gt;MultiSelect=false;

 PageControl1-&gt;Refresh();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/902476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/902476</guid><dc:creator><![CDATA[Soul]]></dc:creator><pubDate>Fri, 28 Oct 2005 07:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to Event für Dynamische TListBox erstellen on Fri, 28 Oct 2005 08:04:34 GMT]]></title><description><![CDATA[<p>FAQ you!</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39206" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39206</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/902480</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/902480</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Fri, 28 Oct 2005 08:04:34 GMT</pubDate></item><item><title><![CDATA[Reply to Event für Dynamische TListBox erstellen on Fri, 28 Oct 2005 08:14:40 GMT]]></title><description><![CDATA[<p>Danke *schäm*</p>
<p>hab extra gesucht, aber nichts gefunden gehabt ...</p>
<p>jetzt gehts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>weise bei der erstellunge einfach</p>
<pre><code class="language-cpp">lList[lList.Length-1]-&gt;OnClick=ListBoxClick;
</code></pre>
<p>zu ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/902488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/902488</guid><dc:creator><![CDATA[Soul]]></dc:creator><pubDate>Fri, 28 Oct 2005 08:14:40 GMT</pubDate></item></channel></rss>