<?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[Auflösungen in ListBox sortieren]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich Auflösungen in einer ListBox sortieren?</p>
<p>IST:</p>
<p>- &quot;1024x768 Pixel, 32 Bit, 70 Hz&quot;<br />
- &quot;1024x768 Pixel, 32 Bit, 60 Hz&quot;<br />
- &quot;1280x1024 Pixel, 32 Bit, 75 Hz&quot;<br />
- &quot;800x600 Pixel, 32 Bit, 80 Hz&quot;</p>
<p>SOLL:</p>
<p>- &quot;800x600 Pixel, 32 Bit, 80 Hz&quot;<br />
- &quot;1024x768 Pixel, 32 Bit, 60 Hz&quot;<br />
- &quot;1024x768 Pixel, 32 Bit, 70 Hz&quot;<br />
- &quot;1280x1024 Pixel, 32 Bit, 75 Hz&quot;</p>
<p>Wenn ich mit sorted=true arbeite kommt folgendes raus:</p>
<p>- &quot;1024x768 Pixel, 32 Bit, 60 Hz&quot;<br />
- &quot;1024x768 Pixel, 32 Bit, 70 Hz&quot;<br />
- &quot;1280x1024 Pixel, 32 Bit, 75 Hz&quot;<br />
- &quot;800x600 Pixel, 32 Bit, 80 Hz&quot;</p>
<p>Kennt jemand dieses Problem? Ich weiß echt nicht mehr weiter.</p>
<p>Bye</p>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/124390/auflösungen-in-listbox-sortieren</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 01:03:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/124390.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Oct 2005 07:26:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 07:26:00 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich Auflösungen in einer ListBox sortieren?</p>
<p>IST:</p>
<p>- &quot;1024x768 Pixel, 32 Bit, 70 Hz&quot;<br />
- &quot;1024x768 Pixel, 32 Bit, 60 Hz&quot;<br />
- &quot;1280x1024 Pixel, 32 Bit, 75 Hz&quot;<br />
- &quot;800x600 Pixel, 32 Bit, 80 Hz&quot;</p>
<p>SOLL:</p>
<p>- &quot;800x600 Pixel, 32 Bit, 80 Hz&quot;<br />
- &quot;1024x768 Pixel, 32 Bit, 60 Hz&quot;<br />
- &quot;1024x768 Pixel, 32 Bit, 70 Hz&quot;<br />
- &quot;1280x1024 Pixel, 32 Bit, 75 Hz&quot;</p>
<p>Wenn ich mit sorted=true arbeite kommt folgendes raus:</p>
<p>- &quot;1024x768 Pixel, 32 Bit, 60 Hz&quot;<br />
- &quot;1024x768 Pixel, 32 Bit, 70 Hz&quot;<br />
- &quot;1280x1024 Pixel, 32 Bit, 75 Hz&quot;<br />
- &quot;800x600 Pixel, 32 Bit, 80 Hz&quot;</p>
<p>Kennt jemand dieses Problem? Ich weiß echt nicht mehr weiter.</p>
<p>Bye</p>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901677</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901677</guid><dc:creator><![CDATA[MartinN]]></dc:creator><pubDate>Thu, 27 Oct 2005 07:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 07:40:11 GMT]]></title><description><![CDATA[<p>Das ist vollkommen korrekt, so wie das sortiert wird. Die '8' kommt nun mal nach der '1'...<br />
Du wirst Dir die Arbeit machen müssen, den String zu verarbeiten und die Reihenfolge selbst zu bestimmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901691</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 27 Oct 2005 07:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 08:10:28 GMT]]></title><description><![CDATA[<p>Das geht leider nicht, weil die Auflösungen dynamisch eingelesen werden, also bei jeder GraKa anders</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901709</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901709</guid><dc:creator><![CDATA[MartinN]]></dc:creator><pubDate>Thu, 27 Oct 2005 08:10:28 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 08:18:38 GMT]]></title><description><![CDATA[<p>Irgendwie befüllst Du die Listbox doch. Dabei mußt Du - anhand des Strings - selbst festlegen, was an welcher Position eingefügt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901713</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901713</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 27 Oct 2005 08:18:38 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 08:28:02 GMT]]></title><description><![CDATA[<p>Ich bin mir nicht ganz sicher - aber kann man bei der Listbox einen eigenen Vergleichsoperator angeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901717</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 27 Oct 2005 08:28:02 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 08:58:06 GMT]]></title><description><![CDATA[<p>Der Custom-Sort geht nur bei der TStringList, nicht bei ListBox::TStrings. Außerdem mußt er trotzdem die Vergleichsfunktion schreiben. Ob er nun erst die Daten in eine TStringList schreibt und dort seine Sortierfunktion aufruft, oder ob er beim Einfügen eines Strings in die ListBox prüft, an welcher Stelle er den String einfügt, macht meiner Meinung keinen großen Unterschied.</p>
<p>Ich denke das große Problem ist, dass er nicht weiß, wie er die Strings auswerten soll, um seine Vergleichsfunktion zu schreiben, aber was fertiges gibt es nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901749</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 27 Oct 2005 08:58:06 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 09:10:14 GMT]]></title><description><![CDATA[<p>gib mal sysutils.h ein und drücke F1 (Hilfe). Dort habe ich schon viele Funktionen für das Vergleichen von Strings gefunden. Dann spart man sich eine Menge Schreibarbeit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901759</guid><dc:creator><![CDATA[helmuth]]></dc:creator><pubDate>Thu, 27 Oct 2005 09:10:14 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 09:12:43 GMT]]></title><description><![CDATA[<p>Joe_M. schrieb:</p>
<blockquote>
<p>Ich denke das große Problem ist, dass er nicht weiß, wie er die Strings auswerten soll, um seine Vergleichsfunktion zu schreiben, aber was fertiges gibt es nicht.</p>
</blockquote>
<p>Dem Manne kann geholfen werden - mit substr() und find() (wenn Borlands TString da nichts eigenes bietet, bleibt als Alternative std::string oder strtok()) kannst du die einzelnen Bestandteile (Höhe, Breite, Farbtiefe, Frequenz) auseinanderdröseln und anschließend in Ganzzahlen umwandeln.</p>
<p>(zu letzterem gibt es eine ausführliche Erklärung in der C++-FAQ)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901760</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 27 Oct 2005 09:12:43 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 09:36:34 GMT]]></title><description><![CDATA[<p>Im BCB6 gibt es, neben dem std::String noch den AnsiString, hier wären die passenden Funktionen AnsiString::AnsiPos() und AnsiString::SubString() zum aufdröseln des Strings in die Teilbereiche.<br />
Die Hilfe zu AnsiString ist recht gut, einfach mal die Methoden durchsehen, die dort geboten werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901775</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901775</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 27 Oct 2005 09:36:34 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 09:39:20 GMT]]></title><description><![CDATA[<p>Danke für die schnelle Hilfe, ich denke, dass ich es so machen werde wie CStoll gemeint hat.</p>
<p>Bye</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901777</guid><dc:creator><![CDATA[MartinN]]></dc:creator><pubDate>Thu, 27 Oct 2005 09:39:20 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 09:43:38 GMT]]></title><description><![CDATA[<p>Um noch mal sysutils.h anzupreisen (muss nur #included werden, im BCB enthalten!): Die Stringfunktionen gibt es dort auch alle, jedoch noch viele zusätzliche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901779</guid><dc:creator><![CDATA[helmuth]]></dc:creator><pubDate>Thu, 27 Oct 2005 09:43:38 GMT</pubDate></item><item><title><![CDATA[Reply to Auflösungen in ListBox sortieren on Thu, 27 Oct 2005 11:03:33 GMT]]></title><description><![CDATA[<p>Methoden der Klasse AnsiString:</p>
<pre><code class="language-cpp">~AnsiString
AnsiCompare
AnsiCompareIC
AnsiLastChar
AnsiPos
AnsiString
ByteType
c_str
cat_printf
cat_sprintf
cat_vprintf
CurrToStr
CurrToStrF
data
Delete
FloatToStrF
FmtLoadStr
Format
FormatFloat
Insert
IntToHex
IntToHex
IsDelimiter
IsEmpty
IsLeadByte
IsPathDelimiter
IsTrailByte
LastDelimiter
Length
LoadStr
LoadString
LowerCase
operator !=
operator []
operator +
operator +=
operator &lt;
operator &lt;=
operator =
operator ==
operator &gt;
operator &gt;=
Pos
printf
SetLength
sprintf
StringOfChar
SubString
ToDouble
ToInt
ToIntDef
Trim
TrimLeft
TrimRight
Unique
UpperCase
vprintf
WideChar
WideCharBufSize
</code></pre>
<p>Läßt wohl kaum noch Wünsche offen... Auf jeden Fall ist alles dabei, was er braucht. Inklusive wandeln nach int...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901834</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 27 Oct 2005 11:03:33 GMT</pubDate></item></channel></rss>