<?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[In Applikation Hilfe zentral aufrufen bei Taste F1]]></title><description><![CDATA[<p>Hallo,<br />
habe nun schon viel gefunden bzgl. Tasten auswerten. KeyPreview = true führt dazu, das die Taste vor den Komponenten von der Form ausgewertet werden können. Ich möchte aber in meiner Mainform eine Hilfedatei aufrufen wenn irgendwo im Programm F1 gedrückt wird. Wie geht sowas? Oder muss ich das in jeder Form (es sind viele) separat einbauen?<br />
Jörn</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/193469/in-applikation-hilfe-zentral-aufrufen-bei-taste-f1</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 02:02:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193469.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Sep 2007 11:59:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to In Applikation Hilfe zentral aufrufen bei Taste F1 on Wed, 26 Sep 2007 11:59:22 GMT]]></title><description><![CDATA[<p>Hallo,<br />
habe nun schon viel gefunden bzgl. Tasten auswerten. KeyPreview = true führt dazu, das die Taste vor den Komponenten von der Form ausgewertet werden können. Ich möchte aber in meiner Mainform eine Hilfedatei aufrufen wenn irgendwo im Programm F1 gedrückt wird. Wie geht sowas? Oder muss ich das in jeder Form (es sind viele) separat einbauen?<br />
Jörn</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373047</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373047</guid><dc:creator><![CDATA[California]]></dc:creator><pubDate>Wed, 26 Sep 2007 11:59:22 GMT</pubDate></item><item><title><![CDATA[Reply to In Applikation Hilfe zentral aufrufen bei Taste F1 on Wed, 26 Sep 2007 12:25:24 GMT]]></title><description><![CDATA[<p>Du hast doch sicher in deiner MainForm ein Menü drinnen womit du auch die Hilfe öffnen kannst?<br />
Dann setzt einfach den ShortCut des MenuItems auf F1.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373069</guid><dc:creator><![CDATA[VergissEs]]></dc:creator><pubDate>Wed, 26 Sep 2007 12:25:24 GMT</pubDate></item><item><title><![CDATA[Reply to In Applikation Hilfe zentral aufrufen bei Taste F1 on Wed, 26 Sep 2007 14:13:26 GMT]]></title><description><![CDATA[<p>Solltest du kein Menü haben, dann geht das doch sicher auch mit:</p>
<pre><code class="language-cpp">void __fastcall TForm1::FormKeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
  if ( Key == VK_F1 )
  {
    AboutBox-&gt;ShowModal();     //oder halt Form1-&gt;... (wie auch immer deine Hilfe heisst)
    Key = 0;
  }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1373173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373173</guid><dc:creator><![CDATA[Tippokrates]]></dc:creator><pubDate>Wed, 26 Sep 2007 14:13:26 GMT</pubDate></item><item><title><![CDATA[Reply to In Applikation Hilfe zentral aufrufen bei Taste F1 on Wed, 26 Sep 2007 16:41:55 GMT]]></title><description><![CDATA[<p>Tippokrates schrieb:</p>
<blockquote>
<p>Solltest du kein Menü haben, dann geht das doch sicher auch mit:</p>
<pre><code class="language-cpp">void __fastcall TForm1::FormKeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
  if ( Key == VK_F1 )
  {
    AboutBox-&gt;ShowModal();     //oder halt Form1-&gt;... (wie auch immer deine Hilfe heisst)
    Key = 0;
  }
}
</code></pre>
</blockquote>
<p>OK aber dann musst du KeyPreview bei allen Formularen auf true stellen und auf allen Formularen den Code rein setzten, mit dem ShortCuts gilt es für die ganze Anwendung!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373275</guid><dc:creator><![CDATA[VergissEs]]></dc:creator><pubDate>Wed, 26 Sep 2007 16:41:55 GMT</pubDate></item><item><title><![CDATA[Reply to In Applikation Hilfe zentral aufrufen bei Taste F1 on Thu, 27 Sep 2007 05:20:55 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/887">@VergissEs</a></p>
<p>Hi,<br />
habe ich probiert. geht auch wenn nur die Mainform aktiv ist. Wenn ich jetzt von der Mainform aus eine zweite Form Modal aufmache geht es nicht...habe einfach nur die OnClick Routine des Menüs genommen....</p>
<pre><code>void __fastcall TfrmMain::mnuHilfeInhaltClick(TObject *Sender)
{
   ShowMessage(&quot;Help&quot;);   
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1373528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373528</guid><dc:creator><![CDATA[California]]></dc:creator><pubDate>Thu, 27 Sep 2007 05:20:55 GMT</pubDate></item></channel></rss>