<?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[Pfeiltasten im Key... Ereignis ohne Wirkung]]></title><description><![CDATA[<p>Hi,</p>
<pre><code class="language-cpp">if (Key == VK_RETURN) {
    if((StringGrid4-&gt;Cells[0][1]!=&quot;&quot;)&amp;&amp;(StringGrid4-&gt;Cells[3][1]!=&quot;&quot;)){
      long double summeZeile1 = StrToFloat(StringGrid4-&gt;Cells[0][1]) * StrToFloat(StringGrid4-&gt;Cells[3][1]);
      StringGrid4-&gt;Cells[4][1] = FloatToStrF(summeZeile1, ffFixed, 7, 2);
    }
}
</code></pre>
<p>funktioniert im Gegensatz zu</p>
<pre><code class="language-cpp">if (Key == VK_DOWN) {
    if((StringGrid4-&gt;Cells[0][1]!=&quot;&quot;)&amp;&amp;(StringGrid4-&gt;Cells[3][1]!=&quot;&quot;)){
      long double summeZeile1 = StrToFloat(StringGrid4-&gt;Cells[0][1]) * StrToFloat(StringGrid4-&gt;Cells[3][1]);
      StringGrid4-&gt;Cells[4][1] = FloatToStrF(summeZeile1, ffFixed, 7, 2);
    }
}
</code></pre>
<p>Die linken und rechten Pfeiltasten haben bei aktiver Zelle die Funktionalitaet, den Cursor nach links bzw. rechts zu setzen. Mit oben und unten kommt man jedoch ins darueber bzw darunter liegende Feld. Meine Idee war nun, dass man wie in Excel und Co auch beim Verlassen der Zelle ueber die Pfeiltasten das Ergebnis angezeigt bekommt. Leider navigiert man im StringGrid ohne dem gewuenschten Ergebnis, warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180455/pfeiltasten-im-key-ereignis-ohne-wirkung</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 16:01:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180455.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 May 2007 00:43:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Pfeiltasten im Key... Ereignis ohne Wirkung on Thu, 03 May 2007 00:43:30 GMT]]></title><description><![CDATA[<p>Hi,</p>
<pre><code class="language-cpp">if (Key == VK_RETURN) {
    if((StringGrid4-&gt;Cells[0][1]!=&quot;&quot;)&amp;&amp;(StringGrid4-&gt;Cells[3][1]!=&quot;&quot;)){
      long double summeZeile1 = StrToFloat(StringGrid4-&gt;Cells[0][1]) * StrToFloat(StringGrid4-&gt;Cells[3][1]);
      StringGrid4-&gt;Cells[4][1] = FloatToStrF(summeZeile1, ffFixed, 7, 2);
    }
}
</code></pre>
<p>funktioniert im Gegensatz zu</p>
<pre><code class="language-cpp">if (Key == VK_DOWN) {
    if((StringGrid4-&gt;Cells[0][1]!=&quot;&quot;)&amp;&amp;(StringGrid4-&gt;Cells[3][1]!=&quot;&quot;)){
      long double summeZeile1 = StrToFloat(StringGrid4-&gt;Cells[0][1]) * StrToFloat(StringGrid4-&gt;Cells[3][1]);
      StringGrid4-&gt;Cells[4][1] = FloatToStrF(summeZeile1, ffFixed, 7, 2);
    }
}
</code></pre>
<p>Die linken und rechten Pfeiltasten haben bei aktiver Zelle die Funktionalitaet, den Cursor nach links bzw. rechts zu setzen. Mit oben und unten kommt man jedoch ins darueber bzw darunter liegende Feld. Meine Idee war nun, dass man wie in Excel und Co auch beim Verlassen der Zelle ueber die Pfeiltasten das Ergebnis angezeigt bekommt. Leider navigiert man im StringGrid ohne dem gewuenschten Ergebnis, warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277895</guid><dc:creator><![CDATA[steff90]]></dc:creator><pubDate>Thu, 03 May 2007 00:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to Pfeiltasten im Key... Ereignis ohne Wirkung on Thu, 03 May 2007 00:57:39 GMT]]></title><description><![CDATA[<p>Okay, habe es ueber die Form und KeyPreview = true hinbekommen, aber warum geht das nicht im Grid?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277897</guid><dc:creator><![CDATA[steff90]]></dc:creator><pubDate>Thu, 03 May 2007 00:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to Pfeiltasten im Key... Ereignis ohne Wirkung on Thu, 03 May 2007 06:16:32 GMT]]></title><description><![CDATA[<p>Es ist nicht so ganz unbedeutend, <em>welches</em> Key... Ereignis du nimmst... <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="🙄"
    /> (Ist jetzt nicht direkt auf die StringGrid-Problematik bezogen, sondern nur ein Hinweis)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277927</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Thu, 03 May 2007 06:16:32 GMT</pubDate></item><item><title><![CDATA[Reply to Pfeiltasten im Key... Ereignis ohne Wirkung on Thu, 03 May 2007 07:00:43 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>steff90 schrieb:</p>
<blockquote>
<p>Okay, habe es ueber die Form und KeyPreview = true hinbekommen, aber warum geht das nicht im Grid?</p>
</blockquote>
<p>Weil das StringGrid manche Tasten eben selber verarbeitet und damit den Event abfängt/nicht losschickt.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277945</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277945</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 03 May 2007 07:00:43 GMT</pubDate></item></channel></rss>