<?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[Checkboxen Font ändern wenn sie auf enabled stehen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich hab in meiner Abfrage Checkboxen eingebaut. Trifft eine der Entscheidungen zu soll die jeweilige Checkbox auf Enabled gesetzt werden. Meine Frage, wenn ich die Checkboxen enabled habe, wie kann ich die Schriftfarbe der deaktivierten Checkboxen auf Schwarz ändern? Geht das?</p>
<pre><code>if(FILINGSYSTEM-&gt;Query1-&gt;FieldValues[&quot;Disabled&quot;] == 1)
                    {
                        Checkbox[i]-&gt;Enabled = false;
                        if (Checkbox[i]-&gt;Enabled == false)
                        {
                         Checkbox[i]-&gt;Font-&gt;Name = &quot;Lucida Handwriting&quot;;

                        }
                    }
                    else
                    {
                        Checkbox[i]-&gt;Enabled = true;

                    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/156377/checkboxen-font-ändern-wenn-sie-auf-enabled-stehen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 01:52:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/156377.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Aug 2006 10:03:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 10:03:29 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich hab in meiner Abfrage Checkboxen eingebaut. Trifft eine der Entscheidungen zu soll die jeweilige Checkbox auf Enabled gesetzt werden. Meine Frage, wenn ich die Checkboxen enabled habe, wie kann ich die Schriftfarbe der deaktivierten Checkboxen auf Schwarz ändern? Geht das?</p>
<pre><code>if(FILINGSYSTEM-&gt;Query1-&gt;FieldValues[&quot;Disabled&quot;] == 1)
                    {
                        Checkbox[i]-&gt;Enabled = false;
                        if (Checkbox[i]-&gt;Enabled == false)
                        {
                         Checkbox[i]-&gt;Font-&gt;Name = &quot;Lucida Handwriting&quot;;

                        }
                    }
                    else
                    {
                        Checkbox[i]-&gt;Enabled = true;

                    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1118154</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118154</guid><dc:creator><![CDATA[Aeris]]></dc:creator><pubDate>Wed, 16 Aug 2006 10:03:29 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 10:08:54 GMT]]></title><description><![CDATA[<p>eigentlich nicht, sie sind farblos(nur rand)</p>
<p>corvin</p>
<p>PS wieso willst du das???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118162</guid><dc:creator><![CDATA[corvin1397]]></dc:creator><pubDate>Wed, 16 Aug 2006 10:08:54 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 10:31:58 GMT]]></title><description><![CDATA[<p>schau in der BCB-Hife bei TFont und dessen Eigenschaften, dort stehen alle Eigenschaften drin, die man an jedem Font ändern kann, also Name, Farbe, Größe usw...</p>
<p>alternativ hilft ein Blick in den Objektinspektor -&gt; Font, mit dem + aufklappen und die Eigenschaften werden aufgelistet und heissen dann zur Laufzeit auch so</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118182</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118182</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 16 Aug 2006 10:31:58 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 10:45:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/5990">@linnea</a></p>
<blockquote>
<p>schau in der BCB-Hife ...</p>
<p>_____________________________________<br />
DAS WORT LINNEAS: Und es stand geschrieben in der Hilfe zum BCB soll er suchen, bis er fündig ward, oder dem Greisentum anheim fiel.&quot;</p>
</blockquote>
<p>AHA <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
<p><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>corvin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118199</guid><dc:creator><![CDATA[corvin1397]]></dc:creator><pubDate>Wed, 16 Aug 2006 10:45:18 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 10:56:35 GMT]]></title><description><![CDATA[<p>Es wird dann trotzdem ausgeführt nur man kann sich in diesem Fall nicht dagegen entscheiden. Aber wenn sie farblos sind sieht es so aus als wäre es nicht aktiv´, deshalb will ich das sie in schwarz dargestellt werden. In der Hilfe hab ich nichts gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118211</guid><dc:creator><![CDATA[Aeris]]></dc:creator><pubDate>Wed, 16 Aug 2006 10:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 11:04:07 GMT]]></title><description><![CDATA[<p>Entweder du änderts (wie schon erwähnt) die Fontfarbe selber auf schwarz oder du setzt deine Checkboxen auf Panels und deaktivierst die.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118222</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118222</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 16 Aug 2006 11:04:07 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 11:09:14 GMT]]></title><description><![CDATA[<p>Probier einfach:</p>
<pre><code>void __fastcall TForm1::Check1Click(TObject *Sender)
{
Form1-&gt;CheckBox1-&gt;Checked = false;
}
</code></pre>
<p>[EDIT] falscher code korrigiert<br />
[EDIT2] oder true<br />
(wenn ich's richtig verstanden habe)</p>
<p>corvin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118225</guid><dc:creator><![CDATA[corvin1397]]></dc:creator><pubDate>Wed, 16 Aug 2006 11:09:14 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 11:06:31 GMT]]></title><description><![CDATA[<p>Sorry die Frage erscheint dir wahrscheinlich unwissend, aber ich hab noch nicht soviel Programmiererfahrung: Was sit ein Panel und wie setze ich meine Checkboxen darauf?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118226</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118226</guid><dc:creator><![CDATA[Aeris]]></dc:creator><pubDate>Wed, 16 Aug 2006 11:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Wed, 16 Aug 2006 11:48:18 GMT]]></title><description><![CDATA[<p>Schau mal in die Komponentenpalette deines Builders (Reiter Standard). Da findest du das Panel.<br />
Gib im Index der BCB-Hilfe mal TPanel ein. Hier findest du Informationen dazu.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118264</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 16 Aug 2006 11:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Thu, 17 Aug 2006 10:45:20 GMT]]></title><description><![CDATA[<p>ok, ich hab es jetzt so gemacht, dass ich einen StaticText über den Checkboxen liegen lasse und da kann ich die Farbe einstellen.</p>
<p>Meint ihr das ist ok oder könnten dann irgendwann probleme auftreten mit denen ich jetzt noch nicht rechnen kann.</p>
<pre><code>if(FILINGSYSTEM-&gt;Query1-&gt;FieldValues[&quot;Disabled&quot;] == 1)
                    {   //Checkbox[i]-&gt;Color = clWindowText;
                        Checkbox[i]-&gt;Enabled = false;
                        if (Checkbox[i]-&gt;Enabled == false)
                        {
                         //Checkbox[i]-&gt;Font-&gt;Name = &quot;Lucida Handwriting&quot;;
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;Left = Checkbox[i]-&gt;Left+18;
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;Top = Checkbox[i]-&gt;Top+6;
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;Caption = Checkbox[i]-&gt;Caption;
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;BringToFront();
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;Visible = true;
                        }
                    }
                    else
                    {
                        /*FILINGSYSTEM-&gt;StaticText[i]-&gt;Left = Checkbox[i]-&gt;Left+18;
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;Top = Checkbox[i]-&gt;Top+6;
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;Caption = Checkbox[i]-&gt;Caption;
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;BringToFront();
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;Font-&gt;Color = clRed;
                         FILINGSYSTEM-&gt;StaticText[i]-&gt;Visible = true;   */
                        Checkbox[i]-&gt;Enabled = true;
                    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1119058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1119058</guid><dc:creator><![CDATA[Aeris1]]></dc:creator><pubDate>Thu, 17 Aug 2006 10:45:20 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Thu, 17 Aug 2006 10:53:54 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>der ordentliche Weg wäre, eine Komponente von TCheckBox abzuleiten oder komplett neu erstellen (also von TControl ableiten). Und dann das Zeichenverhalten komplett selber übernehmen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1119068</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1119068</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 17 Aug 2006 10:53:54 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Thu, 17 Aug 2006 12:09:42 GMT]]></title><description><![CDATA[<p>warum funktioniert</p>
<pre><code>CheckBox[i]-&gt;Font-&gt;Color = clRed;
</code></pre>
<p>nicht? schließlich willst du ja nur die Schriftfarbe der Boxen ändern, die Enabled, also anklickbar sind</p>
<p>und noch etwas:</p>
<pre><code class="language-cpp">Checkbox[i]-&gt;Enabled = false;
     if (Checkbox[i]-&gt;Enabled == false)
</code></pre>
<p>ist etwas eigenartig. Du setzt die Box erst auf false und fragst danach gleich ab ob sie auch wirklich false ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1119121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1119121</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Thu, 17 Aug 2006 12:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to Checkboxen Font ändern wenn sie auf enabled stehen on Thu, 17 Aug 2006 12:13:01 GMT]]></title><description><![CDATA[<p>Linnea schrieb:</p>
<blockquote>
<p>warum funktioniert</p>
<pre><code>CheckBox[i]-&gt;Font-&gt;Color = clRed;
</code></pre>
<p>nicht? schließlich willst du ja nur die Schriftfarbe der Boxen ändern, die Enabled, also anklickbar sind</p>
</blockquote>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-154639-and-highlight-is-.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-154639-and-highlight-is-.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1119125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1119125</guid><dc:creator><![CDATA[Christian411]]></dc:creator><pubDate>Thu, 17 Aug 2006 12:13:01 GMT</pubDate></item></channel></rss>