<?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[Einträge in eine ListView eintragen]]></title><description><![CDATA[<p>Wenn ich mehrere Einträge in eine ListView einfüge, kann diese nicht mehr benutzt werden (Nach unten Scrollen) bis alle Einträge eingefügt sind.</p>
<p>Mit BeginUpdate(); und EndUpdate(); komme ich auch nicht weiter.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
//Eigenschaften von ListView1 einstellen und Spaltebbezeichnungen hinzufügen
Form1-&gt;ListView1-&gt;ViewStyle = vsReport;
Form1-&gt;ListView1-&gt;RowSelect = true;

TListColumn *MeinLinkesColumn;
MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 73;
MeinLinkesColumn-&gt;Caption = &quot;1&quot;;

MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 50;
MeinLinkesColumn-&gt;Caption = &quot;2&quot;;

MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 60;
MeinLinkesColumn-&gt;Caption = &quot;3&quot;;

MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 132;
MeinLinkesColumn-&gt;Caption = &quot;4&quot;;

MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 42;
MeinLinkesColumn-&gt;Caption = &quot;5&quot;;

Form1-&gt;Button1-&gt;Caption = &quot;Los&quot;;
//Titelzeilen Buttons ein- / ausblenden
//Form1-&gt;Visible = false;
Form1-&gt;BorderIcons &gt;&gt; biMaximize; //Form 1 MaximierenButton aus
Form1-&gt;BorderIcons &gt;&gt; biMinimize; //Form 1 MinimierenButton aus
//---------------------------------------------------------------------------
//Fenster Größe und Position festlegen
Form1-&gt;Width = 406;
Form1-&gt;Height = 286;
Form1-&gt;Position = poScreenCenter;
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
TListItem *MeinLinkesItem;
TStringList *TempList = new TStringList;

for(int zaehler = 0; zaehler&lt; 2000; zaehler++)
{
TempList-&gt;Add(zaehler);
}

//Form1-&gt;ListView1-&gt;Items-&gt;BeginUpdate();
for(int zaehler2 = 0; zaehler2&lt; TempList-&gt;Count; zaehler2++)
  {
MeinLinkesItem = Form1-&gt;ListView1-&gt;Items-&gt;Add();
MeinLinkesItem-&gt;Caption = TempList-&gt;Strings[zaehler2];
MeinLinkesItem-&gt;SubItems-&gt;Add(&quot;2&quot;);
MeinLinkesItem-&gt;SubItems-&gt;Add(&quot;3&quot;);
MeinLinkesItem-&gt;SubItems-&gt;Add(&quot;4&quot;);
MeinLinkesItem-&gt;SubItems-&gt;Add(&quot;5&quot;);

Form1-&gt;ListView1-&gt;Update();
//Form1-&gt;ListView1-&gt;Scroll(0,zaehler2);
  }
//Form1-&gt;ListView1-&gt;Items-&gt;EndUpdate();
delete TempList;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Danke...</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/205727/einträge-in-eine-listview-eintragen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 20:30:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/205727.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Feb 2008 12:48:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Einträge in eine ListView eintragen on Sun, 17 Feb 2008 12:48:52 GMT]]></title><description><![CDATA[<p>Wenn ich mehrere Einträge in eine ListView einfüge, kann diese nicht mehr benutzt werden (Nach unten Scrollen) bis alle Einträge eingefügt sind.</p>
<p>Mit BeginUpdate(); und EndUpdate(); komme ich auch nicht weiter.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
//Eigenschaften von ListView1 einstellen und Spaltebbezeichnungen hinzufügen
Form1-&gt;ListView1-&gt;ViewStyle = vsReport;
Form1-&gt;ListView1-&gt;RowSelect = true;

TListColumn *MeinLinkesColumn;
MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 73;
MeinLinkesColumn-&gt;Caption = &quot;1&quot;;

MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 50;
MeinLinkesColumn-&gt;Caption = &quot;2&quot;;

MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 60;
MeinLinkesColumn-&gt;Caption = &quot;3&quot;;

MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 132;
MeinLinkesColumn-&gt;Caption = &quot;4&quot;;

MeinLinkesColumn = Form1-&gt;ListView1-&gt;Columns-&gt;Add();
MeinLinkesColumn-&gt;Width = 42;
MeinLinkesColumn-&gt;Caption = &quot;5&quot;;

Form1-&gt;Button1-&gt;Caption = &quot;Los&quot;;
//Titelzeilen Buttons ein- / ausblenden
//Form1-&gt;Visible = false;
Form1-&gt;BorderIcons &gt;&gt; biMaximize; //Form 1 MaximierenButton aus
Form1-&gt;BorderIcons &gt;&gt; biMinimize; //Form 1 MinimierenButton aus
//---------------------------------------------------------------------------
//Fenster Größe und Position festlegen
Form1-&gt;Width = 406;
Form1-&gt;Height = 286;
Form1-&gt;Position = poScreenCenter;
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
TListItem *MeinLinkesItem;
TStringList *TempList = new TStringList;

for(int zaehler = 0; zaehler&lt; 2000; zaehler++)
{
TempList-&gt;Add(zaehler);
}

//Form1-&gt;ListView1-&gt;Items-&gt;BeginUpdate();
for(int zaehler2 = 0; zaehler2&lt; TempList-&gt;Count; zaehler2++)
  {
MeinLinkesItem = Form1-&gt;ListView1-&gt;Items-&gt;Add();
MeinLinkesItem-&gt;Caption = TempList-&gt;Strings[zaehler2];
MeinLinkesItem-&gt;SubItems-&gt;Add(&quot;2&quot;);
MeinLinkesItem-&gt;SubItems-&gt;Add(&quot;3&quot;);
MeinLinkesItem-&gt;SubItems-&gt;Add(&quot;4&quot;);
MeinLinkesItem-&gt;SubItems-&gt;Add(&quot;5&quot;);

Form1-&gt;ListView1-&gt;Update();
//Form1-&gt;ListView1-&gt;Scroll(0,zaehler2);
  }
//Form1-&gt;ListView1-&gt;Items-&gt;EndUpdate();
delete TempList;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Danke...</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1457504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1457504</guid><dc:creator><![CDATA[Eisbeer]]></dc:creator><pubDate>Sun, 17 Feb 2008 12:48:52 GMT</pubDate></item><item><title><![CDATA[Reply to Einträge in eine ListView eintragen on Sun, 17 Feb 2008 13:20:18 GMT]]></title><description><![CDATA[<p>Füge ein Application-&gt;ProcessMessages(); in deine for-Schleifen ein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1457519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1457519</guid><dc:creator><![CDATA[rean]]></dc:creator><pubDate>Sun, 17 Feb 2008 13:20:18 GMT</pubDate></item><item><title><![CDATA[Reply to Einträge in eine ListView eintragen on Sun, 17 Feb 2008 13:41:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>vielleicht ist das auch etwas für dich:</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-167474-and-start-is-0-and-postdays-is-0-and-postorder-is-asc-and-highlight-is-ondata.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-167474-and-start-is-0-and-postdays-is-0-and-postorder-is-asc-and-highlight-is-ondata.html</a></p>
<blockquote>
<p>Habe meine code gleich mal darauf abgestimmt und siehe da 10.000 entries 2 Sek.</p>
</blockquote>
<p>MfG Barracuda</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1457529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1457529</guid><dc:creator><![CDATA[Barracuda]]></dc:creator><pubDate>Sun, 17 Feb 2008 13:41:35 GMT</pubDate></item><item><title><![CDATA[Reply to Einträge in eine ListView eintragen on Sun, 17 Feb 2008 14:39:37 GMT]]></title><description><![CDATA[<p>funktioniert wenn der Scroll-Balken bewegt wird. Leider wird die ListView solange nicht weiter gefüllt.</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1457557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1457557</guid><dc:creator><![CDATA[Eisbeer]]></dc:creator><pubDate>Sun, 17 Feb 2008 14:39:37 GMT</pubDate></item><item><title><![CDATA[Reply to Einträge in eine ListView eintragen on Sun, 17 Feb 2008 14:41:46 GMT]]></title><description><![CDATA[<p>Eisbeer schrieb:</p>
<blockquote>
<p>funktioniert wenn der Scroll-Balken bewegt wird. Leider wird die ListView solange nicht weiter gefüllt.</p>
<p>==&gt;Eisbeer&lt;==</p>
</blockquote>
<p>Sory... Bezogen auf das Postingvon rean</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1457559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1457559</guid><dc:creator><![CDATA[Eisbeer]]></dc:creator><pubDate>Sun, 17 Feb 2008 14:41:46 GMT</pubDate></item></channel></rss>