<?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[Checkboxe (maximal 1 aktiviert)]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgendes Problem:</p>
<p>Es sind 8 checkboxen vorhanden die man je nach Bedarf aktivieren oder Deaktiveiern kann..</p>
<p>Allerdings darf immer nur eine davon aktiviert sein wenn ich auf den Button klicke...</p>
<p>sollte dies nicht der fall sein soll er sich wahlweise eine frei hand aussuchen <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>Ich weiss nicht wie ich das realisiern soll und die ganzen if-möglichekiten durchzugehen wie z.b</p>
<pre><code class="language-cpp">if (checkbox1-&gt;checked &amp;&amp; checkbox2-&gt;checked) 
{
checkbox1-&gt;checked=false;
checkbox2-&gt;checked=false;....
}
</code></pre>
<p>halte ich für quatsch dafür gibts doch sicher einfacheres oder ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/154838/checkboxe-maximal-1-aktiviert</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 14:21:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/154838.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Jul 2006 10:41:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 10:41:53 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgendes Problem:</p>
<p>Es sind 8 checkboxen vorhanden die man je nach Bedarf aktivieren oder Deaktiveiern kann..</p>
<p>Allerdings darf immer nur eine davon aktiviert sein wenn ich auf den Button klicke...</p>
<p>sollte dies nicht der fall sein soll er sich wahlweise eine frei hand aussuchen <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>Ich weiss nicht wie ich das realisiern soll und die ganzen if-möglichekiten durchzugehen wie z.b</p>
<pre><code class="language-cpp">if (checkbox1-&gt;checked &amp;&amp; checkbox2-&gt;checked) 
{
checkbox1-&gt;checked=false;
checkbox2-&gt;checked=false;....
}
</code></pre>
<p>halte ich für quatsch dafür gibts doch sicher einfacheres oder ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107630</guid><dc:creator><![CDATA[Timon&amp;amp;Pumba]]></dc:creator><pubDate>Mon, 31 Jul 2006 10:41:53 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 10:48:01 GMT]]></title><description><![CDATA[<p>Timon&amp;Pumba schrieb:</p>
<blockquote>
<p>Allerdings darf immer nur eine davon aktiviert sein wenn ich auf den Button klicke...</p>
</blockquote>
<p>Da hast Du die falsche Komponente genommen. TRadioGroup ist in diesem Fall die richtige...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107634</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 31 Jul 2006 10:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 10:52:15 GMT]]></title><description><![CDATA[<p>Nee ich muss schon checkboxen wählen da bei einem anderen Button alle angewählt werden dürfen..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107641</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107641</guid><dc:creator><![CDATA[Timon&amp;amp;Pumba]]></dc:creator><pubDate>Mon, 31 Jul 2006 10:52:15 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 11:11:17 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>Allerdings darf immer nur eine davon aktiviert sein wenn ich auf den Button klicke...</p>
</blockquote>
<blockquote>
<p>Nee ich muss schon checkboxen wählen da bei einem anderen Button alle angewählt werden dürfen..</p>
</blockquote>
<p>Was denn nun?</p>
<p>Wenn du wirklich CheckBox nehmen willst, schau dir zu Beispiel diesen <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39211.html" rel="nofollow">FAQ-Beistrag</a> an. Du brauchst zwar kein dynamisches Array, aber damnn kannst du über alle vorhandenen Checkboxes iterieren und alle auf fals setzen, bis auf das zuletzt geklickte.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107659</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 31 Jul 2006 11:11:17 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 11:29:09 GMT]]></title><description><![CDATA[<p>Hier noch was zu diesem Design<br />
<a href="http://www.frankmahler.de/mshame/Controls.htm" rel="nofollow">http://www.frankmahler.de/mshame/Controls.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107679</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107679</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Mon, 31 Jul 2006 11:29:09 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 12:41:30 GMT]]></title><description><![CDATA[<p>Naja es gibt halt 2 button</p>
<p>bei einem darf immer nur 1 checkbox gewählt sein<br />
beim anderen button ist es egal da dürfen ruhig alle aktiv sein...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107745</guid><dc:creator><![CDATA[Timon&amp;amp;Pumba]]></dc:creator><pubDate>Mon, 31 Jul 2006 12:41:30 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 12:49:54 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>mein erster Vorschlag wäre, die Bedingung lieber auf zwei verschiedene Arten von Auswahlen aufzuteilen (nur eine Option : RadioGroup, alle möglich : Checkbox-Liste). Das ganz statt überButtons über ein TPageControl auswählbar.</p>
<p>Wenn du das nicht willst, dann mußt du wie ich schon gesagt habe über den OnClick-Event der Checkbox-Controls dann je nach ausgewählten modus und auslösenten Control bestehende Auswahlen rückgängig machen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107747</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 31 Jul 2006 12:49:54 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 13:33:20 GMT]]></title><description><![CDATA[<p>Hmm ich werde es mal mit Radio für eine und Checkbox für andere versuchen mal sehen was bei rum kommt <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1107781</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107781</guid><dc:creator><![CDATA[Timon&amp;amp;Pumba]]></dc:creator><pubDate>Mon, 31 Jul 2006 13:33:20 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 18:37:33 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TForm1::CheckBox1Click(TObject *Sender)
{
if(CheckBox1-&gt;Checked == true)
 {
 CheckBox2-&gt;Checked = false;
 CheckBox3-&gt;Checked = false;
 }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::CheckBox2Click(TObject *Sender)
{
if(CheckBox2-&gt;Checked == true)
 {
 CheckBox1-&gt;Checked = false;
 CheckBox3-&gt;Checked = false;
 }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::CheckBox3Click(TObject *Sender)
{
if(CheckBox3-&gt;Checked == true)
 {
 CheckBox1-&gt;Checked = false;
 CheckBox2-&gt;Checked = false;
 }
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1107973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107973</guid><dc:creator><![CDATA[fbfgh]]></dc:creator><pubDate>Mon, 31 Jul 2006 18:37:33 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 18:41:57 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Timon&amp;Pumba schrieb:</p>
<blockquote>
<p>Es sind 8 checkboxen vorhanden die man je nach Bedarf aktivieren oder Deaktiveiern kann..</p>
</blockquote>
<p>Du willst also jetzt manuell alle 8 Events mit jeweils allen 8 Checkboxen überprüfen?<br />
Dann hast du das Prinzip von OOP und Funktionen allgemnein noch nicht richtig verstanden.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107977</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 31 Jul 2006 18:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 19:56:33 GMT]]></title><description><![CDATA[<p>es funktioniert und geht schnell (copy&amp;paste, nur zahlen ändern)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1108015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1108015</guid><dc:creator><![CDATA[fbfgh]]></dc:creator><pubDate>Mon, 31 Jul 2006 19:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 20:03:12 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Und wenn die Controls einfach nur sinnvolle Namen und nicht nur Zahlen haben?<br />
Und wenn sich irgendetwas später an den Controls ändert, das die Überprüfung in allen acht Methoden geändert werden muß?<br />
Eine Lösung die am einfachschnell und einfach ist (grade C&amp;P), ist meistens nachher unübersichtlich und fehleranfällig.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1108020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1108020</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 31 Jul 2006 20:03:12 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Mon, 31 Jul 2006 20:58:12 GMT]]></title><description><![CDATA[<p>Das wichtigste Argument dürfte sein, dass nach etablierten GUI-Richtlinien für exklusive Auswahlen eben RadioButtons bzw. RadioGroups verwendet werden, CheckBoxen hingegen immer dann, wenn jede Auswahl unabhängig ist.<br />
Wer sich nicht daran hält, der verwirrt den Anwender und erschwert die Benutzung des Programmes.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1108053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1108053</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 31 Jul 2006 20:58:12 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxe (maximal 1 aktiviert) on Tue, 01 Aug 2006 07:55:24 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/52">@Jansen</a> pranger mich jetzt nicht aber ich habe nun tatsälich die Checkboxen wie Radiobuttons programmiert :p :p.</p>
<p>Dies aus den einfachen Grund der FAULHEIT <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="😉"
    /><br />
Es erwies sich als einfacher eine If-Abfrage zu machen...<br />
Einfach den zweiten Tabsheet der Pagecontrol zum Kontrollanlass gemacht.. da die 2 Buttons auf verschiedenen TabPages liegen..</p>
<p>Im Grunde hätte man ja auf einem Tabsheet die Checkboxen und auf dem anderen die Radiogroups machen können aber dann hätte ich wieder zuviel umprogrammieren können also bin ich den einfachsten Weg geangen <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>Danke an alle nochmal.. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1108224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1108224</guid><dc:creator><![CDATA[Timon&amp;amp;Pumba]]></dc:creator><pubDate>Tue, 01 Aug 2006 07:55:24 GMT</pubDate></item></channel></rss>