<?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[TApplicationEvents, Minimieren nachricht verhindern.]]></title><description><![CDATA[<p>hallo</p>
<p>ich versuche derzeit zu verhindern das andere formulare minimiert werden, wenn das hauptformular (Form1) minimiert wird. Das ganze dachte cih würde mit einem TApplicationEvents gehen, wenn ich den dispatch verhindere. also wie folgt:</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
#include &quot;Unit2.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
    //nach dem klicken wird ja Form2 angezeigt.
    //dann wird Form1 minimiert...
	Form2-&gt;Show();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ApplicationEvents1Minimize(TObject *Sender)
{
    //...und das sollte doch das minimieren von allen bzw. Form2 verhindern?!?
	ApplicationEvents1-&gt;CancelDispatch();
}
//---------------------------------------------------------------------------
</code></pre>
<p>nur scheint das nicht zu klappen. Warum? Und wie kann ich das lösen was ich vor habe? <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/topic/136640/tapplicationevents-minimieren-nachricht-verhindern</link><generator>RSS for Node</generator><lastBuildDate>Sat, 01 Aug 2026 18:55:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/136640.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Feb 2006 03:03:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TApplicationEvents, Minimieren nachricht verhindern. on Sun, 12 Feb 2006 03:03:57 GMT]]></title><description><![CDATA[<p>hallo</p>
<p>ich versuche derzeit zu verhindern das andere formulare minimiert werden, wenn das hauptformular (Form1) minimiert wird. Das ganze dachte cih würde mit einem TApplicationEvents gehen, wenn ich den dispatch verhindere. also wie folgt:</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
#include &quot;Unit2.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
    //nach dem klicken wird ja Form2 angezeigt.
    //dann wird Form1 minimiert...
	Form2-&gt;Show();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ApplicationEvents1Minimize(TObject *Sender)
{
    //...und das sollte doch das minimieren von allen bzw. Form2 verhindern?!?
	ApplicationEvents1-&gt;CancelDispatch();
}
//---------------------------------------------------------------------------
</code></pre>
<p>nur scheint das nicht zu klappen. Warum? Und wie kann ich das lösen was ich vor habe? <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/991984</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/991984</guid><dc:creator><![CDATA[wurff]]></dc:creator><pubDate>Sun, 12 Feb 2006 03:03:57 GMT</pubDate></item><item><title><![CDATA[Reply to TApplicationEvents, Minimieren nachricht verhindern. on Sun, 12 Feb 2006 07:44:13 GMT]]></title><description><![CDATA[<p>Versuch mal mit OnResize zu arbeiten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/991998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/991998</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Sun, 12 Feb 2006 07:44:13 GMT</pubDate></item><item><title><![CDATA[Reply to TApplicationEvents, Minimieren nachricht verhindern. on Mon, 13 Feb 2006 01:00:15 GMT]]></title><description><![CDATA[<p>das event bringt mir aber für das minimieren nichts.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/992761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/992761</guid><dc:creator><![CDATA[wurff]]></dc:creator><pubDate>Mon, 13 Feb 2006 01:00:15 GMT</pubDate></item><item><title><![CDATA[Reply to TApplicationEvents, Minimieren nachricht verhindern. on Mon, 13 Feb 2006 12:09:08 GMT]]></title><description><![CDATA[<p>CancelDispatch bezieht sich laut Hilfe nur auf weitere ApplicationEvents-Instanzen, so vorhanden.</p>
<p>In deinem Fall wirst du wohl die Message von Hand abfangen müssen, Beispiele findest du u.a. in der <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39305.html" rel="nofollow">FAQ</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/992979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/992979</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 13 Feb 2006 12:09:08 GMT</pubDate></item><item><title><![CDATA[Reply to TApplicationEvents, Minimieren nachricht verhindern. on Mon, 13 Feb 2006 15:27:35 GMT]]></title><description><![CDATA[<p>OnCanResize gibt es auch noch..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/993167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/993167</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Mon, 13 Feb 2006 15:27:35 GMT</pubDate></item></channel></rss>