<?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[RichEdit und TImage]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich habe Ein RichEdit(voll mit Text) und erzeuge zur Laufzeit ein TImage.<br />
Das RichEdit erstreckt sich über das gesamte Formular.<br />
Das Image hat eine Größe von 14*14;<br />
Auf das Image kommt ein Bitmap.<br />
Dem Image übergebe ich RichEdit als Parent.</p>
<p>Super das Image erscheint an der richtigen Stelle auf dem RichEdit.</p>
<p>Das Problem ist, dass sich das gesamte Canvas des Images über das RichEdit zu ziehen scheint, soll heissen, der Text verschwindet und es kann auch kein Text hinzugefügt werden. Der Edit-Cursor blinkt aber und lässt sich von der Tastatur aus steuern.</p>
<p>Hier mal Code.</p>
<pre><code class="language-cpp">Graphics::TBitmap *bit = new Graphics::TBitmap;
    bit-&gt;Width=14;
    bit-&gt;Height=14;
    bit-&gt;Canvas-&gt;Brush-&gt;Color = clRed;
    bit-&gt;Canvas-&gt;Ellipse(0,0,14,14);

    TImage *img = new TImage(this);//oder 'new TImage(RichEdit1);' beides geht soweit

    img-&gt;Width = 14;
    img-&gt;Height = 14;
    img-&gt;Left = 0;
    img-&gt;Top = 0;
    img-&gt;Picture-&gt;Bitmap  = bit;
    img-&gt;Parent = RichEdit1;

    delete bit;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/98453/richedit-und-timage</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 04:09:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/98453.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Jan 2005 17:30:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RichEdit und TImage on Wed, 19 Jan 2005 17:33:42 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich habe Ein RichEdit(voll mit Text) und erzeuge zur Laufzeit ein TImage.<br />
Das RichEdit erstreckt sich über das gesamte Formular.<br />
Das Image hat eine Größe von 14*14;<br />
Auf das Image kommt ein Bitmap.<br />
Dem Image übergebe ich RichEdit als Parent.</p>
<p>Super das Image erscheint an der richtigen Stelle auf dem RichEdit.</p>
<p>Das Problem ist, dass sich das gesamte Canvas des Images über das RichEdit zu ziehen scheint, soll heissen, der Text verschwindet und es kann auch kein Text hinzugefügt werden. Der Edit-Cursor blinkt aber und lässt sich von der Tastatur aus steuern.</p>
<p>Hier mal Code.</p>
<pre><code class="language-cpp">Graphics::TBitmap *bit = new Graphics::TBitmap;
    bit-&gt;Width=14;
    bit-&gt;Height=14;
    bit-&gt;Canvas-&gt;Brush-&gt;Color = clRed;
    bit-&gt;Canvas-&gt;Ellipse(0,0,14,14);

    TImage *img = new TImage(this);//oder 'new TImage(RichEdit1);' beides geht soweit

    img-&gt;Width = 14;
    img-&gt;Height = 14;
    img-&gt;Left = 0;
    img-&gt;Top = 0;
    img-&gt;Picture-&gt;Bitmap  = bit;
    img-&gt;Parent = RichEdit1;

    delete bit;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/700572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700572</guid><dc:creator><![CDATA[Trulli]]></dc:creator><pubDate>Wed, 19 Jan 2005 17:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit und TImage on Wed, 19 Jan 2005 19:10:46 GMT]]></title><description><![CDATA[<p>Trulli schrieb:</p>
<blockquote>
<p>Das Problem ist, dass sich das gesamte Canvas des Images über das RichEdit zu ziehen scheint, soll heissen, der Text verschwindet und es kann auch kein Text hinzugefügt werden.</p>
</blockquote>
<p>Was genau hattest du erwartet bzw. erhofft? Dass sich das Bild wie in Word in den Text einbetten lässt? Dann wirf vielleicht erst noch einen Blick in die <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39305" rel="nofollow">FAQ</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700660</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700660</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 19 Jan 2005 19:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit und TImage on Thu, 20 Jan 2005 12:23:50 GMT]]></title><description><![CDATA[<p>Ich hatte schon in die FAQ geschaut. Die RichEditversion von Borland bindet keine Grafiken ein. Ich hatte viel eher gehofft, dass das Image über dem RichEdit hängt. Wenn ich statt</p>
<pre><code class="language-cpp">img-&gt;Parent = RichEdit1;
</code></pre>
<p>this</p>
<pre><code class="language-cpp">img-&gt;Parent = this;
</code></pre>
<p>schreibe verdeckt das RichEdit die Grafik<br />
und</p>
<pre><code class="language-cpp">img-&gt;BringToFront();
</code></pre>
<p>klappt auch nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/701202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/701202</guid><dc:creator><![CDATA[Trulli]]></dc:creator><pubDate>Thu, 20 Jan 2005 12:23:50 GMT</pubDate></item></channel></rss>