<?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[TPaintBox mit DoubleBuffered]]></title><description><![CDATA[<p>Hi</p>
<p>Wie kann ich TPaintBox die DoubleBuffered propertie verpassen?</p>
<p>Oder sonst, was würde sich besser eignen als einfache Zeichenfläche/Canvas für ein Spielfeld?<br />
Zeichne nur paar Recktecke und Elipsen in verschiedenen Farben, aber alle 5ms..<br />
Mich stört eben das flackern <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>
<p>wäre froh um hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/141752/tpaintbox-mit-doublebuffered</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 00:32:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/141752.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Mar 2006 16:23:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TPaintBox mit DoubleBuffered on Fri, 24 Mar 2006 16:23:30 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>Wie kann ich TPaintBox die DoubleBuffered propertie verpassen?</p>
<p>Oder sonst, was würde sich besser eignen als einfache Zeichenfläche/Canvas für ein Spielfeld?<br />
Zeichne nur paar Recktecke und Elipsen in verschiedenen Farben, aber alle 5ms..<br />
Mich stört eben das flackern <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>
<p>wäre froh um hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023246</guid><dc:creator><![CDATA[great noobian]]></dc:creator><pubDate>Fri, 24 Mar 2006 16:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to TPaintBox mit DoubleBuffered on Fri, 24 Mar 2006 16:28:52 GMT]]></title><description><![CDATA[<p>Was funktioniert nicht bei:</p>
<pre><code class="language-cpp">Form1-&gt;DoubleBuffered = true;
</code></pre>
<p>???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023255</guid><dc:creator><![CDATA[Buffered]]></dc:creator><pubDate>Fri, 24 Mar 2006 16:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to TPaintBox mit DoubleBuffered on Fri, 24 Mar 2006 18:28:40 GMT]]></title><description><![CDATA[<p>Buffered schrieb:</p>
<blockquote>
<p>Was funktioniert nicht bei:</p>
<pre><code class="language-cpp">Form1-&gt;DoubleBuffered = true;
</code></pre>
<p>???</p>
</blockquote>
<p>Je nach dem welche Version er nutzt, gibt es diese Membervariable nicht. Ist erst ab BCB6 in TForm enthalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023325</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Fri, 24 Mar 2006 18:28:40 GMT</pubDate></item><item><title><![CDATA[Reply to TPaintBox mit DoubleBuffered on Fri, 24 Mar 2006 19:47:39 GMT]]></title><description><![CDATA[<p>great noobian schrieb:</p>
<blockquote>
<p>Zeichne nur paar Recktecke und Elipsen in verschiedenen Farben, aber <strong>alle 5ms</strong>..</p>
</blockquote>
<p>wieso so oft?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023378</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Fri, 24 Mar 2006 19:47:39 GMT</pubDate></item><item><title><![CDATA[Reply to TPaintBox mit DoubleBuffered on Fri, 24 Mar 2006 22:53:56 GMT]]></title><description><![CDATA[<p>BigNeal schrieb:</p>
<blockquote>
<p>great noobian schrieb:</p>
<blockquote>
<p>Zeichne nur paar Recktecke und Elipsen in verschiedenen Farben, aber <strong>alle 5ms</strong>..</p>
</blockquote>
<p>wieso so oft?</p>
</blockquote>
<p>weil ich nicht ewig auf den x-tausendsten zyklus meiner simu (ne art game of life) warten mag, die objekte ändern jedesmal ihre position.<br />
ist das zu dekadent?<br />
wie mach ichs besser? mit 50ms könnt ich auch leben, doch da flickerts genauso.</p>
<p>Buffered schrieb:</p>
<blockquote>
<p>Was funktioniert nicht bei:</p>
<pre><code class="language-cpp">Form1-&gt;DoubleBuffered = true;
</code></pre>
</blockquote>
<p>das geht, nur flackert das auf paintbox1 gezeichnete noch immer.<br />
wenn ich auf die form1 zeichne ist es schön ruhig und flüssig.<br />
wollt aber nur ein teilbereich nutzen.</p>
<pre><code class="language-cpp">PaintBox1-&gt;DoubleBuffered = true;
</code></pre>
<p>das geht nicht..</p>
<p>ps benutze bds2006</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023474</guid><dc:creator><![CDATA[great nubian]]></dc:creator><pubDate>Fri, 24 Mar 2006 22:53:56 GMT</pubDate></item><item><title><![CDATA[Reply to TPaintBox mit DoubleBuffered on Sat, 25 Mar 2006 08:17:37 GMT]]></title><description><![CDATA[<p>Code ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023520</guid><dc:creator><![CDATA[Buffered]]></dc:creator><pubDate>Sat, 25 Mar 2006 08:17:37 GMT</pubDate></item><item><title><![CDATA[Reply to TPaintBox mit DoubleBuffered on Sat, 25 Mar 2006 10:52:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">// MainForm.h
class TForm1 : public TForm
{
__published:	// IDE-managed Components
	TPaintBox *PaintBox1;
//...

//MainForm.cpp
//...
void TForm1::initialize()
{
	Form1-&gt;DoubleBuffered = true;    //&lt;== PaintBox1-&gt;DoubleBuffered = true; geht ned        
//...
void __fastcall TForm1::FormPaint(TObject *Sender)
{
	update_settings();
	foo-&gt;paint( PaintBox1 );
}
//...
//Foo.cpp
void foo::paint( TPaintBox1* paint_area )
{
	paint_area-&gt;Canvas-&gt;Pen-&gt;Style   = psSolid;
	paint_area-&gt;Canvas-&gt;Brush-&gt;Style = bsSolid;
	paint_area-&gt;Canvas-&gt;Pen-&gt;Color   = clBlack;
	paint_area-&gt;Canvas-&gt;Brush-&gt;Color = clBlack;
	int area_size = paint_area-&gt;Width;
	int space = area_size/BAR;
	int size = space - SPACER*2;
	for( int i = 0; i &lt; BAR; i++ ) {        //&lt;== BAR ist const 100
		for( int j = 0; j &lt; BAR; j++ ) {
			if( field[i][j]-&gt;is_foo ) {        //&lt;== field ist Array[BAR][BAR] von blubs
				paint_area-&gt;Canvas-&gt;Rectangle(        //&lt;== hier wird gemalt
				i*space + SPACER,
				j*space + SPACER,
				i*space + size + SPACER,
				j*space + size + SPACER);
			}
		}
	}
}
</code></pre>
<p>danke nochmals</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023602</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023602</guid><dc:creator><![CDATA[grant nubian]]></dc:creator><pubDate>Sat, 25 Mar 2006 10:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to TPaintBox mit DoubleBuffered on Mon, 27 Mar 2006 11:47:45 GMT]]></title><description><![CDATA[<p>PuppetMaster2k schrieb:</p>
<blockquote>
<p>Je nach dem welche Version er nutzt, gibt es diese Membervariable nicht. Ist erst ab BCB6 in TForm enthalten.</p>
</blockquote>
<p>DoubleBuffered ist auch schon bei BCB5 (In TWinControl) enthalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1024710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1024710</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Mon, 27 Mar 2006 11:47:45 GMT</pubDate></item></channel></rss>