<?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[Dynamisch paintBox erstellen]]></title><description><![CDATA[<p>Hallo zusammen, ich habe wiedermal ein saudummes Problem, aber das bringt mich noch zur Weissglut.<br />
Im grossen und ganzen möchte ich nur eine paintBox dynamisch erzeugen, und darin was zeichnen. Aber irgendwie tut aus unerklärlichen Gründen nicht</p>
<p>TPaintBox *PaintBox1 =new TPaintBox(this);<br />
PaintBox1-&gt;Parent = ScrollBox1;<br />
PaintBox1-&gt;Left = 100;<br />
PaintBox1-&gt;Top = 100;<br />
PaintBox1-&gt;Height = 300;<br />
PaintBox1-&gt;Width = 300;<br />
PaintBox1-&gt;Canvas-&gt;Rectangle(5, 0, 50, 50);<br />
PaintBox1-&gt;Show();</p>
<p>Hät jemand evtl einen Tipp?<br />
Danke im vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/101471/dynamisch-paintbox-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 03:49:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/101471.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Feb 2005 14:32:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dynamisch paintBox erstellen on Wed, 16 Feb 2005 14:32:13 GMT]]></title><description><![CDATA[<p>Hallo zusammen, ich habe wiedermal ein saudummes Problem, aber das bringt mich noch zur Weissglut.<br />
Im grossen und ganzen möchte ich nur eine paintBox dynamisch erzeugen, und darin was zeichnen. Aber irgendwie tut aus unerklärlichen Gründen nicht</p>
<p>TPaintBox *PaintBox1 =new TPaintBox(this);<br />
PaintBox1-&gt;Parent = ScrollBox1;<br />
PaintBox1-&gt;Left = 100;<br />
PaintBox1-&gt;Top = 100;<br />
PaintBox1-&gt;Height = 300;<br />
PaintBox1-&gt;Width = 300;<br />
PaintBox1-&gt;Canvas-&gt;Rectangle(5, 0, 50, 50);<br />
PaintBox1-&gt;Show();</p>
<p>Hät jemand evtl einen Tipp?<br />
Danke im vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/724867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/724867</guid><dc:creator><![CDATA[GoTschA]]></dc:creator><pubDate>Wed, 16 Feb 2005 14:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch paintBox erstellen on Wed, 16 Feb 2005 14:58:28 GMT]]></title><description><![CDATA[<p>Probiers mal mit einem Paintbox-&gt;Repaint() und einer OnPaint Methode - vielleicht klappts ja dann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/724887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/724887</guid><dc:creator><![CDATA[Salim]]></dc:creator><pubDate>Wed, 16 Feb 2005 14:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch paintBox erstellen on Wed, 16 Feb 2005 15:54:30 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Wann führst Du denn diesen Code aus ?<br />
Wenn das im OnCreate oder so ist, mußt Du noch die Paint-Methode definieren. Sonst wird das Gezeichnete jedesmal gelöscht, wenn z.B. ein anderes Fenster über Deins kommt.</p>
<pre><code class="language-cpp">PaintBox1-&gt;OnPaint = PaintBox1Paint;
</code></pre>
<pre><code class="language-cpp">void __fastcall TForm1::PaintBox1Paint(TObject *Sender)
{
PaintBox1-&gt;Canvas-&gt;Rectangle(5, 0, 50, 50);
}
//---------------------------------------------------------------------------
</code></pre>
<p>Bis dann denn,<br />
<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="🙂"
    /><br />
Nash</p>
]]></description><link>https://www.c-plusplus.net/forum/post/724944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/724944</guid><dc:creator><![CDATA[Nash]]></dc:creator><pubDate>Wed, 16 Feb 2005 15:54:30 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch paintBox erstellen on Thu, 17 Feb 2005 08:32:52 GMT]]></title><description><![CDATA[<p>Besten dank, jetzt funktioniert es <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>Merci</p>
]]></description><link>https://www.c-plusplus.net/forum/post/725402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725402</guid><dc:creator><![CDATA[GoTschA]]></dc:creator><pubDate>Thu, 17 Feb 2005 08:32:52 GMT</pubDate></item></channel></rss>