<?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[Variable mit OnClick übergeben]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin ziemlicher Neuling, was C++ angeht.<br />
Ich habe vor eine Variable mit OnClick zu übergeben.<br />
Bisher habe ich folgenden Code geschrieben, geht aber nicht:</p>
<pre><code>Moewe[index]-&gt;OnClick=beenden(10,index);
</code></pre>
<p>Danke für eure Mühe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/98399/variable-mit-onclick-übergeben</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 00:48:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/98399.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Jan 2005 11:12:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 11:12:03 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin ziemlicher Neuling, was C++ angeht.<br />
Ich habe vor eine Variable mit OnClick zu übergeben.<br />
Bisher habe ich folgenden Code geschrieben, geht aber nicht:</p>
<pre><code>Moewe[index]-&gt;OnClick=beenden(10,index);
</code></pre>
<p>Danke für eure Mühe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700140</guid><dc:creator><![CDATA[Martin_Negele]]></dc:creator><pubDate>Wed, 19 Jan 2005 11:12:03 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 12:15:18 GMT]]></title><description><![CDATA[<p>versuchs mal hiermit <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39206" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39206</a></p>
<p>und am besten die FAQ und die Suchfunktion benutzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700182</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700182</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 19 Jan 2005 12:15:18 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 12:42:28 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=5608" rel="nofollow">davie</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">Borland C++ Builder (VCL/CLX)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/700203</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700203</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 19 Jan 2005 12:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 12:49:07 GMT]]></title><description><![CDATA[<p>Linnea schrieb:</p>
<blockquote>
<p>versuchs mal hiermit <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39206" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39206</a></p>
<p>und am besten die FAQ und die Suchfunktion benutzen</p>
</blockquote>
<p>Genau das suche ich, ABER, ...<br />
Wie kann ich jetzt dem Bild, auf das ich geklickt habe für Visible den Wert false setzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700213</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700213</guid><dc:creator><![CDATA[Martin_Negele]]></dc:creator><pubDate>Wed, 19 Jan 2005 12:49:07 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 12:56:58 GMT]]></title><description><![CDATA[<p>Also ich hab das hier:</p>
<blockquote>
<p>const int x = 10;<br />
TImage *img[x];</p>
<p>for (int i = 0; i &lt; x; i++)<br />
{<br />
img[i] = new TImage(this);<br />
img[i]-&gt;Parent = this;<br />
img[i]-&gt;Width = 32;<br />
img[i]-&gt;Height = 32;<br />
img[i]-&gt;Top = i * 35;<br />
img[i]-&gt;OnClick=Image1Click;<br />
...<br />
img[i]-&gt;Show();<br />
img[i]-&gt;Canvas-&gt;Brush-&gt;Color = clWhite; // nur zum Test<br />
}</p>
</blockquote>
<p>Und will jetzt folgendes machen</p>
<pre><code>void __fastcall TForm1::Image1Click(TObject *Sender) 
{ 
    img[i]-&gt;Visible=false; 
}
</code></pre>
<p>Das geht aber natürlich nicht, wie kann ich das realisieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700223</guid><dc:creator><![CDATA[Martin_Negele]]></dc:creator><pubDate>Wed, 19 Jan 2005 12:56:58 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 13:09:48 GMT]]></title><description><![CDATA[<p>Bitt schau noch einmal in die <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39207" rel="nofollow">FAQ</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/700246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700246</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 19 Jan 2005 13:09:48 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 13:16:59 GMT]]></title><description><![CDATA[<p>Hab ich schon gesehen, weiß aber nicht, wie ich damit mein Problem lösen kann, da bei mir alle Images die selben Eigenschaften haben, bis auf den Namen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700252</guid><dc:creator><![CDATA[Martin_Negele]]></dc:creator><pubDate>Wed, 19 Jan 2005 13:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 13:18:46 GMT]]></title><description><![CDATA[<p>Dann lies dir das nochmal genau durch. Tipp: im Parameter Sender deiner OnClick-Funktion wird das aufrufende Objekt übergeben (dein Image).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700254</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 19 Jan 2005 13:18:46 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 13:32:09 GMT]]></title><description><![CDATA[<p>Danke, aber wie kann ich das aus dem Sender auslesen?<br />
Wie gesagt, bin Anfänger <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/700263</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700263</guid><dc:creator><![CDATA[Martin_Negele]]></dc:creator><pubDate>Wed, 19 Jan 2005 13:32:09 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 13:38:22 GMT]]></title><description><![CDATA[<p>Steht eigentlich in der FAQ, aber bitte sehr</p>
<pre><code class="language-cpp">void __fastcall TForm1::Image1Click(TObject *Sender) 
{ 
    TImage *img = dynamic_cast&lt;TImage *&gt;(Sender);
    if( img != NULL ) img-&gt;Visible = false; 
}
</code></pre>
<p>Falls du unbedingt den Index in deiner Liste brauchst könntest du Ihn über die Eigenschaft &quot;Tag&quot; von TImage mit übergeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700270</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700270</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 19 Jan 2005 13:38:22 GMT</pubDate></item><item><title><![CDATA[Reply to Variable mit OnClick übergeben on Wed, 19 Jan 2005 13:40:45 GMT]]></title><description><![CDATA[<p>DANKE!!!<br />
Das funktioniert einwandfrei</p>
<p>Hab ich leider nicht in der FAQ gesehen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700276</guid><dc:creator><![CDATA[Martin_Negele]]></dc:creator><pubDate>Wed, 19 Jan 2005 13:40:45 GMT</pubDate></item></channel></rss>