<?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[Doppelklick auf TrayIcon abfangen]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich möchte gerne einen Doppelklick auf meinem TrayIcon abfangen und zwar so:</p>
<pre><code class="language-cpp">void __fastcall TMainForm::FormMouseDown(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
   if(Shift.Contains(ssDouble))
   {
      ...
   }
}
</code></pre>
<p>Das Problem liegt nun darin, dass ich so oft ich will und so schnell ich kann auf mein Tray Icon klicken kann, die if-Bedingung jedoch nie erfüllt wird. Der MouseDown-Event wird ausgelöst, dass habe ich bereits probiert. Kann mir da jemand weiter helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/157870/doppelklick-auf-trayicon-abfangen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 16:30:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/157870.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Aug 2006 08:54:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Doppelklick auf TrayIcon abfangen on Wed, 30 Aug 2006 08:54:24 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich möchte gerne einen Doppelklick auf meinem TrayIcon abfangen und zwar so:</p>
<pre><code class="language-cpp">void __fastcall TMainForm::FormMouseDown(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
   if(Shift.Contains(ssDouble))
   {
      ...
   }
}
</code></pre>
<p>Das Problem liegt nun darin, dass ich so oft ich will und so schnell ich kann auf mein Tray Icon klicken kann, die if-Bedingung jedoch nie erfüllt wird. Der MouseDown-Event wird ausgelöst, dass habe ich bereits probiert. Kann mir da jemand weiter helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1127421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1127421</guid><dc:creator><![CDATA[wedmer]]></dc:creator><pubDate>Wed, 30 Aug 2006 08:54:24 GMT</pubDate></item><item><title><![CDATA[Reply to Doppelklick auf TrayIcon abfangen on Wed, 30 Aug 2006 08:56:07 GMT]]></title><description><![CDATA[<p>Warum nimmst du nicht OnDblClick?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1127423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1127423</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 30 Aug 2006 08:56:07 GMT</pubDate></item><item><title><![CDATA[Reply to Doppelklick auf TrayIcon abfangen on Wed, 30 Aug 2006 21:18:58 GMT]]></title><description><![CDATA[<p>Diesen Event gibt es bei mir nicht (BCB6).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1127987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1127987</guid><dc:creator><![CDATA[wedmer]]></dc:creator><pubDate>Wed, 30 Aug 2006 21:18:58 GMT</pubDate></item><item><title><![CDATA[Reply to Doppelklick auf TrayIcon abfangen on Thu, 31 Aug 2006 07:12:34 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>dann fang die Windows-Message selber ab, so wie es <a href="http://bcb-tutorial.c-plusplus.net/komponentenentwicklung/komponenten7.html" rel="nofollow">hier</a> erklärt wird.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1128104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1128104</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 31 Aug 2006 07:12:34 GMT</pubDate></item><item><title><![CDATA[Reply to Doppelklick auf TrayIcon abfangen on Thu, 31 Aug 2006 12:13:16 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/8198">@wedmer</a><br />
Der Event in deinem Post ist aber in TMainForm und nicht im Trayicon oder ist TMainForm ein TrayIcon?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1128340</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1128340</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 31 Aug 2006 12:13:16 GMT</pubDate></item><item><title><![CDATA[Reply to Doppelklick auf TrayIcon abfangen on Thu, 31 Aug 2006 12:34:57 GMT]]></title><description><![CDATA[<p>Dann werd ich mich wohl mal dran machen, die Message selber abzufangen. Aber es sollte doch auch so gehen. Denn <strong>Shift.Contains(ssLeft)</strong> liefert mir <strong>true</strong> zurück wenn ich mit der Linken Maustaste auf das Icon klicke.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1387">@Braunstein</a>: hätte in der Nacht wohl doch etwas schlafen sollen. Habe den Event der Form und nicht der des TrayIcons kopiert. *schäm*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1128360</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1128360</guid><dc:creator><![CDATA[wedmer]]></dc:creator><pubDate>Thu, 31 Aug 2006 12:34:57 GMT</pubDate></item></channel></rss>