<?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[Fehlermeldung beim zeichen]]></title><description><![CDATA[<p>Ich bekomme seid einer halben stunde jetz diese Fehlermeldung :</p>
<p>Leinwand/Bild erlaubt keine Zeichen.</p>
<p>Hatte bis jetz zeichnen lassen und da ging es im thread aber seid eine halben stunde geht es net mehr woran kann es liegen.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;PT.h&quot;
#include &quot;painter.h&quot;
#pragma package(smart_init)

TControlCanvas *PanelCanvas = new TControlCanvas;
bool los = true;
//---------------------------------------------------------------------------

//   Wichtig: Methoden und Eigenschaften von Objekten der VCL können nur
//   in Methoden verwendet werden, die Synchronize aufrufen, z.B.:
//
//      Synchronize(UpdateCaption);
//
//   wobei UpdateCaption so aussehen könnte:
//
//      void __fastcall PaintThread::UpdateCaption()
//      {
//        Form1-&gt;Caption = &quot;In Thread aktualisiert&quot;;
//      }
//---------------------------------------------------------------------------

__fastcall PaintThread::PaintThread(bool CreateSuspended)
        : TThread(CreateSuspended)
{
}
//---------------------------------------------------------------------------
void __fastcall PaintThread::Execute()
{
int x = 1,y = 130;

while(los)
{
x++;
PaintWatcher-&gt;werty-&gt;Caption = y;
PaintWatcher-&gt;wertx-&gt;Caption = x;
y = PaintWatcher-&gt;Top;
Sleep(100);
PanelCanvas-&gt;Pixels[x][y]= clLime;
PanelCanvas-&gt;MoveTo(x,y);
if(PaintWatcher-&gt;CanvasPanel-&gt;Width == x)
{
x = 1;
y = 130;
los = true;
}
}
delete PanelCanvas;
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/124072/fehlermeldung-beim-zeichen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 16:07:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/124072.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Oct 2005 12:36:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlermeldung beim zeichen on Sun, 23 Oct 2005 12:36:16 GMT]]></title><description><![CDATA[<p>Ich bekomme seid einer halben stunde jetz diese Fehlermeldung :</p>
<p>Leinwand/Bild erlaubt keine Zeichen.</p>
<p>Hatte bis jetz zeichnen lassen und da ging es im thread aber seid eine halben stunde geht es net mehr woran kann es liegen.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;PT.h&quot;
#include &quot;painter.h&quot;
#pragma package(smart_init)

TControlCanvas *PanelCanvas = new TControlCanvas;
bool los = true;
//---------------------------------------------------------------------------

//   Wichtig: Methoden und Eigenschaften von Objekten der VCL können nur
//   in Methoden verwendet werden, die Synchronize aufrufen, z.B.:
//
//      Synchronize(UpdateCaption);
//
//   wobei UpdateCaption so aussehen könnte:
//
//      void __fastcall PaintThread::UpdateCaption()
//      {
//        Form1-&gt;Caption = &quot;In Thread aktualisiert&quot;;
//      }
//---------------------------------------------------------------------------

__fastcall PaintThread::PaintThread(bool CreateSuspended)
        : TThread(CreateSuspended)
{
}
//---------------------------------------------------------------------------
void __fastcall PaintThread::Execute()
{
int x = 1,y = 130;

while(los)
{
x++;
PaintWatcher-&gt;werty-&gt;Caption = y;
PaintWatcher-&gt;wertx-&gt;Caption = x;
y = PaintWatcher-&gt;Top;
Sleep(100);
PanelCanvas-&gt;Pixels[x][y]= clLime;
PanelCanvas-&gt;MoveTo(x,y);
if(PaintWatcher-&gt;CanvasPanel-&gt;Width == x)
{
x = 1;
y = 130;
los = true;
}
}
delete PanelCanvas;
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/899264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/899264</guid><dc:creator><![CDATA[Praetorianer_33]]></dc:creator><pubDate>Sun, 23 Oct 2005 12:36:16 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung beim zeichen on Sun, 23 Oct 2005 13:19:19 GMT]]></title><description><![CDATA[<blockquote>
<p>Hatte bis jetz zeichnen lassen und da ging es im thread aber seid eine halben stunde geht es net mehr woran kann es liegen.</p>
</blockquote>
<p>Bitt mal übesetzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/899296</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/899296</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Sun, 23 Oct 2005 13:19:19 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung beim zeichen on Sun, 23 Oct 2005 13:22:37 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>Hatte bis jetz zeichnen lassen und da ging es im thread aber seid eine halben stunde geht es net mehr woran kann es liegen.</p>
</blockquote>
<p>Was hast du denn vor einer halben Stunde geändert?</p>
<pre><code class="language-cpp">TControlCanvas *PanelCanvas = new TControlCanvas;
...
void __fastcall PaintThread::Execute()
{
delete PanelCanvas;
}
</code></pre>
<p>Das halte ich schon mal für sehr unschön, wenn nicht sogar für fehlerhaft.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/899298</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/899298</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 23 Oct 2005 13:22:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung beim zeichen on Sun, 23 Oct 2005 13:26:43 GMT]]></title><description><![CDATA[<p>Danke für die Antworten jetz haut es wieder hin.</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/899300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/899300</guid><dc:creator><![CDATA[Praetorianer_33]]></dc:creator><pubDate>Sun, 23 Oct 2005 13:26:43 GMT</pubDate></item></channel></rss>