<?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[Text in TRichedit mit C++ Builder 6 Formatieren]]></title><description><![CDATA[<p>Ich habe mit Hilfe der C++ builder hilfe folgendes Programm erstellt:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
RichEdit1-&gt;Lines-&gt;Add(Edit1-&gt;Text);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
   RichEdit1-&gt;SelAttributes-&gt;Color = clRed;
  RichEdit1-&gt;SelAttributes-&gt;Height += 5;
  RichEdit1-&gt;Lines-&gt;Add(&quot;This line of text will be red. &quot;);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button3Click(TObject *Sender)
{
  RichEdit1-&gt;SelAttributes-&gt;Color = clBlue;
  RichEdit1-&gt;SelAttributes-&gt;Height += 5;
  RichEdit1-&gt;Lines-&gt;Add(&quot;This line of text will be blue. &quot;);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button4Click(TObject *Sender)
{
  RichEdit1-&gt;SelAttributes-&gt;Color = clGreen;
  RichEdit1-&gt;SelAttributes-&gt;Height += 5;
  RichEdit1-&gt;Lines-&gt;Add(&quot;This line of text will be green. &quot;);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button5Click(TObject *Sender)
{
  RichEdit1-&gt;SelAttributes-&gt;Color = clYellow;
  RichEdit1-&gt;SelAttributes-&gt;Height += 5;
  RichEdit1-&gt;Lines-&gt;Add(&quot;This line of text will be yellow. &quot;);
}
</code></pre>
<p>Ich weiß jedoch nicht wie ich einzelne Textteile in einr Zeile inefärben kann.</p>
<p>MfG kevka</p>
<p>PS:<br />
Ich habs jetzt verstanden:</p>
<p>akari schrieb:</p>
<blockquote>
<p>Ein Thema ein Thread, ein Thread ein Thema.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/152465/text-in-trichedit-mit-c-builder-6-formatieren</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 02:20:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/152465.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Jul 2006 13:55:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Text in TRichedit mit C++ Builder 6 Formatieren on Thu, 06 Jul 2006 14:04:08 GMT]]></title><description><![CDATA[<p>Ich habe mit Hilfe der C++ builder hilfe folgendes Programm erstellt:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
RichEdit1-&gt;Lines-&gt;Add(Edit1-&gt;Text);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
   RichEdit1-&gt;SelAttributes-&gt;Color = clRed;
  RichEdit1-&gt;SelAttributes-&gt;Height += 5;
  RichEdit1-&gt;Lines-&gt;Add(&quot;This line of text will be red. &quot;);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button3Click(TObject *Sender)
{
  RichEdit1-&gt;SelAttributes-&gt;Color = clBlue;
  RichEdit1-&gt;SelAttributes-&gt;Height += 5;
  RichEdit1-&gt;Lines-&gt;Add(&quot;This line of text will be blue. &quot;);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button4Click(TObject *Sender)
{
  RichEdit1-&gt;SelAttributes-&gt;Color = clGreen;
  RichEdit1-&gt;SelAttributes-&gt;Height += 5;
  RichEdit1-&gt;Lines-&gt;Add(&quot;This line of text will be green. &quot;);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button5Click(TObject *Sender)
{
  RichEdit1-&gt;SelAttributes-&gt;Color = clYellow;
  RichEdit1-&gt;SelAttributes-&gt;Height += 5;
  RichEdit1-&gt;Lines-&gt;Add(&quot;This line of text will be yellow. &quot;);
}
</code></pre>
<p>Ich weiß jedoch nicht wie ich einzelne Textteile in einr Zeile inefärben kann.</p>
<p>MfG kevka</p>
<p>PS:<br />
Ich habs jetzt verstanden:</p>
<p>akari schrieb:</p>
<blockquote>
<p>Ein Thema ein Thread, ein Thread ein Thema.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1092525</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1092525</guid><dc:creator><![CDATA[kevka]]></dc:creator><pubDate>Thu, 06 Jul 2006 14:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to Text in TRichedit mit C++ Builder 6 Formatieren on Thu, 06 Jul 2006 14:04:03 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>dazu must du erstmal deinen Bereich des Textes auswählen (::SelStart, ::SelLength).<br />
Danach kannst du mit SelAtrributes die Eigenschaften für diesen Teil verändern.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1092530</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1092530</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 06 Jul 2006 14:04:03 GMT</pubDate></item></channel></rss>