<?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[Glyph-Bild zur Laufzeit BitBtn zuweisen]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich den einem BitBtn zur Laufzeit ein Bild zuweisen?</p>
<pre><code class="language-cpp">BitBtn1-&gt;Glyph = &quot;C:\\bild.bmp&quot;;
</code></pre>
<p>[C++ Fehler] Unit1.cpp(159): E2034 Konvertierung von 'char *' nach 'TBitmap *' nicht möglich</p>
<p>Wenn ich nicht die Datei angeben kann, was dann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/88833/glyph-bild-zur-laufzeit-bitbtn-zuweisen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 11:39:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88833.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Oct 2004 15:20:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Glyph-Bild zur Laufzeit BitBtn zuweisen on Wed, 13 Oct 2004 15:20:39 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich den einem BitBtn zur Laufzeit ein Bild zuweisen?</p>
<pre><code class="language-cpp">BitBtn1-&gt;Glyph = &quot;C:\\bild.bmp&quot;;
</code></pre>
<p>[C++ Fehler] Unit1.cpp(159): E2034 Konvertierung von 'char *' nach 'TBitmap *' nicht möglich</p>
<p>Wenn ich nicht die Datei angeben kann, was dann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/627910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/627910</guid><dc:creator><![CDATA[wiwi77]]></dc:creator><pubDate>Wed, 13 Oct 2004 15:20:39 GMT</pubDate></item><item><title><![CDATA[Reply to Glyph-Bild zur Laufzeit BitBtn zuweisen on Wed, 13 Oct 2004 15:28:26 GMT]]></title><description><![CDATA[<p><strong>Glyph</strong> ist vom Typ <strong>TBitmap</strong>. Guck also in der Hilfe mal nach Eigenschaften und Methoden von <strong>TBitmap</strong>. Die weitere Vorgehensweise sollte dann einleuchten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/627930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/627930</guid><dc:creator><![CDATA[Peter]]></dc:creator><pubDate>Wed, 13 Oct 2004 15:28:26 GMT</pubDate></item><item><title><![CDATA[Reply to Glyph-Bild zur Laufzeit BitBtn zuweisen on Wed, 13 Oct 2004 15:35:47 GMT]]></title><description><![CDATA[<p>Klar! Danke Peter.</p>
<pre><code class="language-cpp">BitBtn1-&gt;Glyph-&gt;LoadFromFile(&quot;C:\\bild.bmp&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/627941</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/627941</guid><dc:creator><![CDATA[wiwi77]]></dc:creator><pubDate>Wed, 13 Oct 2004 15:35:47 GMT</pubDate></item><item><title><![CDATA[Reply to Glyph-Bild zur Laufzeit BitBtn zuweisen on Wed, 13 Oct 2004 18:22:56 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> <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/628123</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628123</guid><dc:creator><![CDATA[Peter]]></dc:creator><pubDate>Wed, 13 Oct 2004 18:22:56 GMT</pubDate></item><item><title><![CDATA[Reply to Glyph-Bild zur Laufzeit BitBtn zuweisen on Thu, 14 Oct 2004 06:30:44 GMT]]></title><description><![CDATA[<p>Also gut - und wenn ich z.B. ein JPG habe? Ich habs mal so versucht:</p>
<pre><code class="language-cpp">TJPEGImage *jpg  = new TJPEGImage();
Graphics::TBitmap *bmp = new Graphics::TBitmap();

jpg-&gt;LoadFromFile(&quot;c:\\bild.jpg&quot;);

// verkleinern und als Bitmap
bmp-&gt;Canvas-&gt;StretchDraw(myRect, jpg);

// Versuch 1 - passiert nichts, aber auch keine Fehlermeldung
BitBtn1-&gt;Glyph-&gt;Assign(bmp);

// Versuch 2 - passiert nichts, aber auch keine Fehlermeldung
BitBtn1-&gt;Glyph-&gt;Canvas-&gt;Draw(0,0,bmp);

delete jpg;
delete bmp;
</code></pre>
<p>...ich steh wohl schon wieder auf dem Schlauch...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628414</guid><dc:creator><![CDATA[wiwi77]]></dc:creator><pubDate>Thu, 14 Oct 2004 06:30:44 GMT</pubDate></item><item><title><![CDATA[Reply to Glyph-Bild zur Laufzeit BitBtn zuweisen on Thu, 14 Oct 2004 07:14:52 GMT]]></title><description><![CDATA[<p>Taste Dich schrittweise vor um kontrollieren zu können ob alles so funktioniert wie es soll. Enthält Dein TJPEGImage überhaupt das geladenen Bild ? Zeichne es zur Kontrolle erst mal auf einen sichbaren Canvas, z.B. die Form selber oder in eine Paintbox.<br />
Ich weiß so ad hock leider auch nicht was da schief läuft und zum probieren habe ich hier im Geschäft keine Zeit <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/628444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628444</guid><dc:creator><![CDATA[Peter]]></dc:creator><pubDate>Thu, 14 Oct 2004 07:14:52 GMT</pubDate></item></channel></rss>