<?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[Tastaturabfrage]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich hab da mal wieder ein kleines Problem. Und zwar würde ich gerne wenn ich bei einem Edit Fenster auf Enter drücke, dass denn eine Aktion ausgeführt wird.</p>
<p>Meiner Meinnung nach müsste das doch Funktionieren wenn ich das in OnKeyPress rein schreibe.</p>
<p>Ein Test von mir sieht so aus.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &amp;Key)
{
        if(Key == Key_Enter)
                Label1-&gt;Caption=&quot;Test&quot;;
}
</code></pre>
<p>Problem ist das dann die Meldung kommt Key_Enter Symbol nicht gefunden. Laut Borland Hilfe soll das aber so funktionieren. Oder muss ich dafür noch ne datei Includen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/145294/tastaturabfrage</link><generator>RSS for Node</generator><lastBuildDate>Wed, 05 Aug 2026 02:33:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/145294.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Apr 2006 15:41:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tastaturabfrage on Wed, 26 Apr 2006 15:41:19 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich hab da mal wieder ein kleines Problem. Und zwar würde ich gerne wenn ich bei einem Edit Fenster auf Enter drücke, dass denn eine Aktion ausgeführt wird.</p>
<p>Meiner Meinnung nach müsste das doch Funktionieren wenn ich das in OnKeyPress rein schreibe.</p>
<p>Ein Test von mir sieht so aus.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &amp;Key)
{
        if(Key == Key_Enter)
                Label1-&gt;Caption=&quot;Test&quot;;
}
</code></pre>
<p>Problem ist das dann die Meldung kommt Key_Enter Symbol nicht gefunden. Laut Borland Hilfe soll das aber so funktionieren. Oder muss ich dafür noch ne datei Includen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1045797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1045797</guid><dc:creator><![CDATA[JBOpael]]></dc:creator><pubDate>Wed, 26 Apr 2006 15:41:19 GMT</pubDate></item><item><title><![CDATA[Reply to Tastaturabfrage on Wed, 26 Apr 2006 15:45:37 GMT]]></title><description><![CDATA[<p>Ich weiss nicht woher du Key_Enter her hast, aber mit den virtuellen Tastencodes geht es bestimmt:</p>
<p><a href="http://www.marquardtnet.info/cecke/quickies.1/1_quicky_23.html" rel="nofollow">http://www.marquardtnet.info/cecke/quickies.1/1_quicky_23.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1045800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1045800</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Wed, 26 Apr 2006 15:45:37 GMT</pubDate></item><item><title><![CDATA[Reply to Tastaturabfrage on Wed, 26 Apr 2006 15:46:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<pre><code class="language-cpp">if(Key == VK_RETURN)
</code></pre>
<p>Siehe auch &quot;Virtuelle Tastaturcodes&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1045801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1045801</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 26 Apr 2006 15:46:26 GMT</pubDate></item><item><title><![CDATA[Reply to Tastaturabfrage on Wed, 26 Apr 2006 15:53:02 GMT]]></title><description><![CDATA[<p>Das Mit dem Key_Enter ist in der Borlandhilfe Unter dem Index Tastencodes zu finden. Da stehen auch alle Anderen Tasten drin (Die auch nicht Funktionieren).</p>
<p>Aber Danke das mit dem VK_RETURN funktioniert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1045809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1045809</guid><dc:creator><![CDATA[JBOpael]]></dc:creator><pubDate>Wed, 26 Apr 2006 15:53:02 GMT</pubDate></item><item><title><![CDATA[Reply to Tastaturabfrage on Wed, 26 Apr 2006 16:18:06 GMT]]></title><description><![CDATA[<p>JBOpael schrieb:</p>
<blockquote>
<p>Das Mit dem Key_Enter ist in der Borlandhilfe Unter dem Index Tastencodes zu finden. Da stehen auch alle Anderen Tasten drin (Die auch nicht Funktionieren).</p>
</blockquote>
<p>Und wenn Du etwas genauer hingesehen hättest, wäre die sicherlich aufgefallen, dass es sich dabei um die Implementierung der Key-Codes für QT / CLX handelt und nicht die von Windows. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1045826</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1045826</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 26 Apr 2006 16:18:06 GMT</pubDate></item></channel></rss>