<?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[Shortcut verwenden]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe mir die KOmponente HotKey eingefügt, und auf Alt+Rueck gesetzt!</p>
<p>Im Form OnShortCut-Ereigniss wird dann eine MessageBox ausgegeben!</p>
<p>Leider kommt die jetzt, egal welche Taste ich drücke....<br />
ich dachte, das kommt dann nur bei Alt+Rueck??</p>
<p>Wie funktioniert das richtig??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/124276/shortcut-verwenden</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 18:22:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/124276.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Oct 2005 08:44:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Shortcut verwenden on Wed, 26 Oct 2005 08:44:02 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe mir die KOmponente HotKey eingefügt, und auf Alt+Rueck gesetzt!</p>
<p>Im Form OnShortCut-Ereigniss wird dann eine MessageBox ausgegeben!</p>
<p>Leider kommt die jetzt, egal welche Taste ich drücke....<br />
ich dachte, das kommt dann nur bei Alt+Rueck??</p>
<p>Wie funktioniert das richtig??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/900912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/900912</guid><dc:creator><![CDATA[Shortcut?]]></dc:creator><pubDate>Wed, 26 Oct 2005 08:44:02 GMT</pubDate></item><item><title><![CDATA[Reply to Shortcut verwenden on Wed, 26 Oct 2005 08:54:59 GMT]]></title><description><![CDATA[<p>Hast Du Dir schon mal die Hilfe zu der Komponente und zu dem Ereignis OnShortCut durchgelesen?<br />
Ich habe beides noch nicht verwendet, aber würde sagen, dass die beiden Dinge nichts miteinander zu tun haben.</p>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/900922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/900922</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Wed, 26 Oct 2005 08:54:59 GMT</pubDate></item><item><title><![CDATA[Reply to Shortcut verwenden on Wed, 26 Oct 2005 09:02:14 GMT]]></title><description><![CDATA[<p>ok, stimmt, aber wie kann ich dann mein problem lösen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/900928</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/900928</guid><dc:creator><![CDATA[Shortcut?]]></dc:creator><pubDate>Wed, 26 Oct 2005 09:02:14 GMT</pubDate></item><item><title><![CDATA[Reply to Shortcut verwenden on Wed, 26 Oct 2005 09:06:10 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>aus der BCB-Hilfe zu THotkey verwenden :</p>
<blockquote>
<p>Mit Hilfe der Komponente THotKey können Tastenkürzel für beliebige Steuerelemente definiert werden. Mit HotKey kann die jeweilige Tastenkombination und mit Modifiers der dabei verwendete Modifizierer (Alt, Strg, Umschalt) angegeben werden.<br />
Die Komponente THotKey kann in der Eigenschaft ShortCut einem Menüeintrag zugewiesen werden. Wenn der Benutzer dann die Tastenkombination drückt, die in den Eigenschaften HotKey und Modifiers festgelegt ist, aktiviert Windows den Menüeintrag.</p>
</blockquote>
<p>Wenn du das so nicht verwenden willst, dann verzichte auf THotkey, und benutzt den OnShortCut-Event, umd drin manuell die Eingabe zu überprüfen. Dazu findest du bereits einiges in Forum.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/900933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/900933</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 26 Oct 2005 09:06:10 GMT</pubDate></item><item><title><![CDATA[Reply to Shortcut verwenden on Wed, 26 Oct 2005 09:27:17 GMT]]></title><description><![CDATA[<p>und wie frag ich die im SHortcut ab?</p>
<p>Key geht ja nich!</p>
<p>Wie kann ich auf A und B prüfen und dann eine MessageBox ausgeben lassen??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/900948</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/900948</guid><dc:creator><![CDATA[Shortcut?]]></dc:creator><pubDate>Wed, 26 Oct 2005 09:27:17 GMT</pubDate></item><item><title><![CDATA[Reply to Shortcut verwenden on Wed, 26 Oct 2005 09:40:41 GMT]]></title><description><![CDATA[<p>Ich vermute, Du musst im OnShortCut-Ereignis des Formulars z.B. sowas machen:</p>
<pre><code class="language-cpp">void __fastcall FormOnShortCut(Messages::TWMKey &amp;Msg, bool &amp;Handled)
{
   if (Msg.CharCode == VK_ALT + VK_BACK)
   {
      // Hier Dein Code
      Handled = true;
   }
}
</code></pre>
<p>Soweit ich das aus der Hilfe richtig herausgelesen habe - der Code ist nicht getestet.<br />
Mit der Suchfunktion nach shortcut findest Du auch Möglichkeiten, wie das Problem über OnKeyDown lösen kannst.</p>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/900961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/900961</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Wed, 26 Oct 2005 09:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to Shortcut verwenden on Wed, 26 Oct 2005 11:01:17 GMT]]></title><description><![CDATA[<p>nee geht net, auf 2 funktioniert nich, nur einer funktioniert immer <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title="=/"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/901054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901054</guid><dc:creator><![CDATA[Oh_Oh]]></dc:creator><pubDate>Wed, 26 Oct 2005 11:01:17 GMT</pubDate></item><item><title><![CDATA[Reply to Shortcut verwenden on Wed, 26 Oct 2005 12:16:07 GMT]]></title><description><![CDATA[<p>Oh_Oh schrieb:</p>
<blockquote>
<p>nee geht net, auf 2 funktioniert nich, nur einer funktioniert immer <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title="=/"
      alt="😕"
    /></p>
</blockquote>
<p>Na dann eben:</p>
<pre><code class="language-cpp">void __fastcall FormOnShortCut(Messages::TWMKey &amp;Msg, bool &amp;Handled)
{
   short KEY_PRESSED = 0xf0;
   short keyState = GetKeyState(VK_MENU);
   if (Msg.CharCode == VK_BACK
       &amp;&amp; keyState &amp; KEY_PRESSED)
   {
      // Hier Dein Code
      Handled = true;
   }
}
</code></pre>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901119</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901119</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Wed, 26 Oct 2005 12:16:07 GMT</pubDate></item></channel></rss>