<?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[Tasten Abfangen]]></title><description><![CDATA[<p>Ich benutze das OnKeyDown Eregnis meines Formes, das funktioniert aber nur so lange bis ich eine Komponete z.B ein Edit oder einen Button auf das Form platziere. Wie funktioniert es das ich trotzdem meine Tasteneingabe abfange?<br />
Schon mal Vielen Dank im Vorraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/154237/tasten-abfangen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 12:07:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/154237.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Jul 2006 14:16:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tasten Abfangen on Tue, 25 Jul 2006 14:16:53 GMT]]></title><description><![CDATA[<p>Ich benutze das OnKeyDown Eregnis meines Formes, das funktioniert aber nur so lange bis ich eine Komponete z.B ein Edit oder einen Button auf das Form platziere. Wie funktioniert es das ich trotzdem meine Tasteneingabe abfange?<br />
Schon mal Vielen Dank im Vorraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103903</guid><dc:creator><![CDATA[Maiki]]></dc:creator><pubDate>Tue, 25 Jul 2006 14:16:53 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten Abfangen on Tue, 25 Jul 2006 14:20:32 GMT]]></title><description><![CDATA[<p>Wirf mal einen Blick auf die Eigenschaft TForm::KeyPreview.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103908</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 25 Jul 2006 14:20:32 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten Abfangen on Wed, 26 Jul 2006 18:57:10 GMT]]></title><description><![CDATA[<p>Und wenn man jetzt noch Pfeiltasten verwenden möchte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1104854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1104854</guid><dc:creator><![CDATA[Maiki]]></dc:creator><pubDate>Wed, 26 Jul 2006 18:57:10 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten Abfangen on Wed, 26 Jul 2006 20:56:18 GMT]]></title><description><![CDATA[<p>Benutze ein TApplicationEvents (aus dem Bereich Zusätzlich)<br />
dann kannst du die einzelnen Application-Messages im OnMessage auswerten .</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
void __fastcall TFormMain::ApplicationEvents1Message(tagMSG &amp;Msg,
	  bool &amp;Handled)
{
	if (Msg.message==WM_KEYDOWN) {

		if (Msg.wParam == VK_UP) {
			//Pfeil nach oben gedrückt

			if ((GetKeyState(VK_CONTROL) &amp; 0x8000)) {
				//Pfeil nach unten gedrückt mit der STRG Taste
			}
			if ((GetKeyState(VK_SHIFT) &amp; 0x8000)) {
				//Pfeil nach unten gedrückt mit der Shift Taste
			}

		}
		if (Msg.wParam == VK_DOWN) {
			//Pfeil nach unten gedrückt
		}
		if (Msg.wParam == VK_LEFT) {
			//Pfeil nach links gedrückt
		}
		if (Msg.wParam == VK_RIGHT) {
			//Pfeil nach rechts gedrückt
		}
	}
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1104951</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1104951</guid><dc:creator><![CDATA[VergissEs]]></dc:creator><pubDate>Wed, 26 Jul 2006 20:56:18 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten Abfangen on Thu, 27 Jul 2006 12:09:33 GMT]]></title><description><![CDATA[<p>VergissEs schrieb:</p>
<blockquote>
<p>Benutze ein TApplicationEvents (aus dem Bereich Zusätzlich)<br />
dann kannst du die einzelnen Application-Messages im OnMessage auswerten .</p>
<p>[cpp]<br />
//---------------------------------------------------------------------------<br />
void __fastcall TFormMain::ApplicationEvents1Message(tagMSG &amp;Msg,<br />
bool &amp;Handled)<br />
{<br />
if (Msg.message==WM_KEYDOWN) {</p>
<p>if (Msg.wParam == VK_UP) {<br />
//Pfeil nach <strong>oben</strong> gedrückt</p>
<p>if ((GetKeyState(VK_CONTROL) &amp; 0x8000)) {<br />
//Pfeil nach <strong>unten</strong> gedrückt mit der STRG Taste<br />
}<br />
if ((GetKeyState(VK_SHIFT) &amp; 0x8000)) {<br />
//Pfeil nach <strong>unten</strong> gedrückt mit der Shift Taste<br />
}</p>
<p>}<br />
if (Msg.wParam == VK_DOWN) {<br />
//Pfeil nach unten gedrückt<br />
}<br />
if (Msg.wParam == VK_LEFT) {<br />
//Pfeil nach links gedrückt<br />
}<br />
if (Msg.wParam == VK_RIGHT) {<br />
//Pfeil nach rechts gedrückt<br />
}<br />
}<br />
}<br />
//---------------------------------------------------------------------------[/cpp]</p>
</blockquote>
<p>Die Kommentierung sollte noch überarbeitet werden. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>E: Kann man im cpp-Tag nicht Fett und unterstrichen schreiben? <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/1105320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105320</guid><dc:creator><![CDATA[Sphy]]></dc:creator><pubDate>Thu, 27 Jul 2006 12:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten Abfangen on Thu, 27 Jul 2006 14:07:57 GMT]]></title><description><![CDATA[<p>Sehr Sehr vielen Dank für den hinweis</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105425</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105425</guid><dc:creator><![CDATA[VergissEs]]></dc:creator><pubDate>Thu, 27 Jul 2006 14:07:57 GMT</pubDate></item></channel></rss>