<?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[Ermitteln welche Komponente ich anklicke ?]]></title><description><![CDATA[<p>hallo,</p>
<p>gib es eine Möglichkeit, ohne einzelne 'OnClick' Abfrage, zu erkennen welche Componente angeklickt wurde ?<br />
z.B. ich habe 30 Bilder(jeweils in einer Image Komponente) auf einer Form, wenn ich eins von ihnen anklicke, hätte ich gerne den Image Namen (von der Komponente).<br />
Kann mir da jemand helfen ?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/135528/ermitteln-welche-komponente-ich-anklicke</link><generator>RSS for Node</generator><lastBuildDate>Sat, 01 Aug 2026 13:45:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/135528.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Feb 2006 18:11:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ermitteln welche Komponente ich anklicke ? on Thu, 02 Feb 2006 18:11:38 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>gib es eine Möglichkeit, ohne einzelne 'OnClick' Abfrage, zu erkennen welche Componente angeklickt wurde ?<br />
z.B. ich habe 30 Bilder(jeweils in einer Image Komponente) auf einer Form, wenn ich eins von ihnen anklicke, hätte ich gerne den Image Namen (von der Komponente).<br />
Kann mir da jemand helfen ?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/984279</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/984279</guid><dc:creator><![CDATA[OldMan00]]></dc:creator><pubDate>Thu, 02 Feb 2006 18:11:38 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln welche Komponente ich anklicke ? on Thu, 02 Feb 2006 18:18:19 GMT]]></title><description><![CDATA[<p><a href="http://www.marquardtnet.info/cecke/quickies.1/1_quicky_17.html" rel="nofollow">http://www.marquardtnet.info/cecke/quickies.1/1_quicky_17.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/984283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/984283</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Thu, 02 Feb 2006 18:18:19 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln welche Komponente ich anklicke ? on Thu, 02 Feb 2006 18:26:56 GMT]]></title><description><![CDATA[<p>OK Danke.<br />
ich habe das Problem jetzt mit</p>
<pre><code class="language-cpp">dynamic_cast&lt;TImage*&gt;(Sender)-&gt;Name
</code></pre>
<p>gelößt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/984288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/984288</guid><dc:creator><![CDATA[OldMan00]]></dc:creator><pubDate>Thu, 02 Feb 2006 18:26:56 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln welche Komponente ich anklicke ? on Fri, 03 Feb 2006 09:28:31 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Schau dir Christians Beitrag nochmal genau an. Man sollte bei dynamic_cast immer überprüfen ob der cast auch erfolgreich war, sonst kann es irgendwann einmal zu interessanten Fehlermeldungen kommen (Access violation).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/984786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/984786</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 03 Feb 2006 09:28:31 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln welche Komponente ich anklicke ? on Fri, 03 Feb 2006 15:58:55 GMT]]></title><description><![CDATA[<p>Danke erstmal.<br />
Was könnte theoretisch passieren ?<br />
Ich habe keine dynamische Komponeten und die Bilder werden nicht von der HD gelesen. Liegen fest als Resourcen vor.<br />
Will es also so in dieser Art verwenden:</p>
<pre><code class="language-cpp">Image_1-&gt;Picture = dynamic_cast&lt;TImage*&gt;(Sender)-&gt;Picture;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/985126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985126</guid><dc:creator><![CDATA[OldMan00]]></dc:creator><pubDate>Fri, 03 Feb 2006 15:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln welche Komponente ich anklicke ? on Fri, 03 Feb 2006 16:28:20 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>wenn du dir absolut sicher bist, das Sender ausnahmelos von Typ TImage ist, kannst du statt dynamic_cast auch static_cast nehmen, was dann keine Überprüfung zur Laufzeit erfordert.<br />
Sollte es aber auch nur die Geringeste Möglichkeit geben, das Sender von anderem Typ ist, und du also den dynamic_cast wegen der Überprüfung brauchst, must du auch erstmal danach das Ergebnis noch auf NULL prüfen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985153</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 03 Feb 2006 16:28:20 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln welche Komponente ich anklicke ? on Fri, 03 Feb 2006 16:30:59 GMT]]></title><description><![CDATA[<p>ok Danke !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985157</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985157</guid><dc:creator><![CDATA[OldMan00]]></dc:creator><pubDate>Fri, 03 Feb 2006 16:30:59 GMT</pubDate></item></channel></rss>