<?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[TImage löscht sich selbst bei OnClick]]></title><description><![CDATA[<p>Hat einer eine Idee, wie man soetwas umsetzen kann?</p>
<pre><code class="language-cpp">void __fastcall MyClass::Funktion(void)
{
  Image = new TImage(ScrollBox1);
/*...*/
  Image-&gt;OnClick = OnClick;
}

void __fastcall MyClass::OnClick(TObject *Sender)
{
  delete Image;
}
</code></pre>
<p>Gibt immer eine Fehlermeldung, da die Funktion nach dem delete immernoch weiterläuft.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188232/timage-löscht-sich-selbst-bei-onclick</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 06:40:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188232.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Jul 2007 13:47:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TImage löscht sich selbst bei OnClick on Sun, 29 Jul 2007 13:48:29 GMT]]></title><description><![CDATA[<p>Hat einer eine Idee, wie man soetwas umsetzen kann?</p>
<pre><code class="language-cpp">void __fastcall MyClass::Funktion(void)
{
  Image = new TImage(ScrollBox1);
/*...*/
  Image-&gt;OnClick = OnClick;
}

void __fastcall MyClass::OnClick(TObject *Sender)
{
  delete Image;
}
</code></pre>
<p>Gibt immer eine Fehlermeldung, da die Funktion nach dem delete immernoch weiterläuft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334344</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334344</guid><dc:creator><![CDATA[Tobi3000]]></dc:creator><pubDate>Sun, 29 Jul 2007 13:48:29 GMT</pubDate></item><item><title><![CDATA[Reply to TImage löscht sich selbst bei OnClick on Sun, 29 Jul 2007 14:08:35 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>reicht es vielleicht auch, wenn du es so machst?</p>
<pre><code class="language-cpp">void __fastcall MyClass::OnClick(TObject *Sender)
{
  Image-&gt;Hide();
}
</code></pre>
<p>mfg<br />
Jakel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334364</guid><dc:creator><![CDATA[Jakel]]></dc:creator><pubDate>Sun, 29 Jul 2007 14:08:35 GMT</pubDate></item><item><title><![CDATA[Reply to TImage löscht sich selbst bei OnClick on Sun, 29 Jul 2007 14:15:06 GMT]]></title><description><![CDATA[<p>Wenn gar nichts mehr geht, dann schon.</p>
<p>Allerdings könnten es nach ner Zeit unfassbar viele Bilder werden und darum wäre es einfach besser, wenn die gelöscht werden bei OnClick.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334370</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334370</guid><dc:creator><![CDATA[Tobi3000]]></dc:creator><pubDate>Sun, 29 Jul 2007 14:15:06 GMT</pubDate></item><item><title><![CDATA[Reply to TImage löscht sich selbst bei OnClick on Mon, 30 Jul 2007 12:40:33 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall MyClass::OnClick(TObject *Sender)
{
  Image-&gt;OnClick = EmptyFunc;
  delete Image;
}
</code></pre>
<p>Vielleicht kannst du es auf diese Art und Weise austricksen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334912</guid><dc:creator><![CDATA[GreyHound]]></dc:creator><pubDate>Mon, 30 Jul 2007 12:40:33 GMT</pubDate></item><item><title><![CDATA[Reply to TImage löscht sich selbst bei OnClick on Wed, 01 Aug 2007 07:50:01 GMT]]></title><description><![CDATA[<p>Image-&gt;OnClick = 0;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336275</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 01 Aug 2007 07:50:01 GMT</pubDate></item><item><title><![CDATA[Reply to TImage löscht sich selbst bei OnClick on Wed, 01 Aug 2007 11:28:08 GMT]]></title><description><![CDATA[<p>Image1 eine leere Funktion zu geben hab ich auch schon versucht, das funktioniert leider auch nicht.</p>
<p>Ich habe das jetzt so gemacht, dass ein Timer aktiviert wird, der dann nach 50ms die Aufgabe übernimmt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336439</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336439</guid><dc:creator><![CDATA[Tobi3000]]></dc:creator><pubDate>Wed, 01 Aug 2007 11:28:08 GMT</pubDate></item><item><title><![CDATA[Reply to TImage löscht sich selbst bei OnClick on Fri, 10 Aug 2007 17:55:26 GMT]]></title><description><![CDATA[<p>Oder<br />
- eine Message an z.B. Hauptform senden<br />
- dort eine Behandlung dafür schreiben<br />
- in dieser delete Image machen oder ne spezielle Funktion dazu erzeugen<br />
(in MyClass)</p>
<p>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />
Die Message mit <strong>PostMessage</strong> absetzen<br />
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342361</guid><dc:creator><![CDATA[DerAltenburger]]></dc:creator><pubDate>Fri, 10 Aug 2007 17:55:26 GMT</pubDate></item></channel></rss>