<?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[Tabulatoren in ListBox?]]></title><description><![CDATA[<p>Hallo,<br />
wisst Ihr vieleich wie ich so oder so ein ähnliches ListBox erstellen kann:<br />
<a href="http://www.1200kb.net/uploadimg/file260168964.jpg" rel="nofollow">ListBox</a></p>
<p>Ich hab das mal mit folgendem Code probiert:</p>
<pre><code class="language-cpp">const MAX_TABS = 4;
const Tab = 9;
char Tabulators[9];

void __fastcall TForm1::FormCreate(TObject *Sender)
{
  Tabulators[0] = 70;
  Tabulators[1] = 120;
  Tabulators[2] = 100;
  Tabulators[3] = 80;
  ListBox1-&gt;TabWidth = 1;

  SendMessage(ListBox1-&gt;Handle, LB_SETTABSTOPS, MAX_TABS, Longint(Tabulators));

  ListBox1-&gt;Items-&gt;Add(&quot;Peter&quot; + Tab + &quot;Meier&quot; + Tab + &quot;1234-56&quot; + Tab + &quot;Otzlingen&quot;);
  ListBox1-&gt;Items-&gt;Add(&quot;Johann Jones&quot; + Tab + &quot;Krauter&quot; + Tab + &quot;123-45&quot;);
}
</code></pre>
<p>irgendwas ist falsch im Quelltext, gibt es vieleicht eine bessere Methode um mehrere Tabulatoren zu erstellen?</p>
<p>Vielen Dank schonmal.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/189175/tabulatoren-in-listbox</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 04:24:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/189175.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Aug 2007 11:28:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 11:32:23 GMT]]></title><description><![CDATA[<p>Hallo,<br />
wisst Ihr vieleich wie ich so oder so ein ähnliches ListBox erstellen kann:<br />
<a href="http://www.1200kb.net/uploadimg/file260168964.jpg" rel="nofollow">ListBox</a></p>
<p>Ich hab das mal mit folgendem Code probiert:</p>
<pre><code class="language-cpp">const MAX_TABS = 4;
const Tab = 9;
char Tabulators[9];

void __fastcall TForm1::FormCreate(TObject *Sender)
{
  Tabulators[0] = 70;
  Tabulators[1] = 120;
  Tabulators[2] = 100;
  Tabulators[3] = 80;
  ListBox1-&gt;TabWidth = 1;

  SendMessage(ListBox1-&gt;Handle, LB_SETTABSTOPS, MAX_TABS, Longint(Tabulators));

  ListBox1-&gt;Items-&gt;Add(&quot;Peter&quot; + Tab + &quot;Meier&quot; + Tab + &quot;1234-56&quot; + Tab + &quot;Otzlingen&quot;);
  ListBox1-&gt;Items-&gt;Add(&quot;Johann Jones&quot; + Tab + &quot;Krauter&quot; + Tab + &quot;123-45&quot;);
}
</code></pre>
<p>irgendwas ist falsch im Quelltext, gibt es vieleicht eine bessere Methode um mehrere Tabulatoren zu erstellen?</p>
<p>Vielen Dank schonmal.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341431</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Thu, 09 Aug 2007 11:32:23 GMT</pubDate></item><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 11:41:24 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>TListBox ist nicht dazu geeignet. Benutzt TStringGrid oder TListView, dort kannst du mehrere Spalten anlegen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341444</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 09 Aug 2007 11:41:24 GMT</pubDate></item><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 12:21:21 GMT]]></title><description><![CDATA[<p>Vielen Dank.<br />
Aber wenn ich bei TListView ein neuer Untereintrag einfüge, dann sieht man diesen untereintrag nicht, muss ich bei TListView vieleich noch was einstellen?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341476</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Thu, 09 Aug 2007 12:21:21 GMT</pubDate></item><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 12:27:03 GMT]]></title><description><![CDATA[<p>Hallo Bruce85</p>
<p>Achte auf den ViewStyle=vsReport</p>
<p>Erste Spalte mit ListItem-&gt;Caption=&quot;1.Spalte&quot; anlegen;<br />
aller weiteren Spalten mit ListItem-&gt;SubItems-&gt;Add(&quot;x.Spalte&quot;);</p>
<p>Gruss Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341481</guid><dc:creator><![CDATA[Stefan71242]]></dc:creator><pubDate>Thu, 09 Aug 2007 12:27:03 GMT</pubDate></item><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 16:10:09 GMT]]></title><description><![CDATA[<p>Vielen Dank Stefan7124.<br />
Es hat alles gut funktioniert.<br />
Gibt es vieleicht noch möglichkeiten einen CheckBox in der ersten Spalte zu integrieren?</p>
<p>Edit: Das mit den Checkboxen habe ich hinbekommen, aber wieso wenn ich einen Eintrag anklicke, werden net die ganze zeile Markiert?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341712</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Thu, 09 Aug 2007 16:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 16:10:26 GMT]]></title><description><![CDATA[<p>Hei, ja klar. Einfach die Option Checkboxes auf True setzen<br />
(einfach mal die Hilfe zu TListView anschauen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
<p>Gruss Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341724</guid><dc:creator><![CDATA[Stefan71242]]></dc:creator><pubDate>Thu, 09 Aug 2007 16:10:26 GMT</pubDate></item><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 17:41:01 GMT]]></title><description><![CDATA[<p>Genau das hab ich ja gemacht, ich hab nur noch ein problem mit dem selektieren der einträge.<br />
Wieso werden nicht die ganze zeile markiert sondern nur dieser Spalte die ich angeklickt habe?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341775</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341775</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Thu, 09 Aug 2007 17:41:01 GMT</pubDate></item><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 17:52:36 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Wie schon gesagt solltest du dir die Hilfe von TListView mal anschauen. Da ist auch irgendwo eine Option um eine ganze Zeile auswählen zu lassen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341781</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341781</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 09 Aug 2007 17:52:36 GMT</pubDate></item><item><title><![CDATA[Reply to Tabulatoren in ListBox? on Thu, 09 Aug 2007 20:48:01 GMT]]></title><description><![CDATA[<p>Es hat funktioniert, vielen dank.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341875</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Thu, 09 Aug 2007 20:48:01 GMT</pubDate></item></channel></rss>