<?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[Etwas tun wenn die form aktive ist und nur dann]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich möächte gerne etwas machen wenn die form sichtbar ist. Es gibt ca. drei events die man in frage stellen &quot;könnte&quot;. OnCreate, OnActive, OnShow.<br />
Jedoch sind alle drei nicht gut geeignet, da ich die form minimieren will.</p>
<p><strong>OnCreate</strong><br />
- scheint zu früh dazu...</p>
<p><strong>OnActive</strong><br />
- würde gehen, jedoch wird die form jedes mal wieder mnimiert, wenn es den fokus hat...</p>
<p><strong>OnShow</strong><br />
- geht auch nicht....</p>
<p>also wie kann ich das richtig machen? eine unschöne lösung wäre eine bool variable und das event OnActive.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/109162/etwas-tun-wenn-die-form-aktive-ist-und-nur-dann</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 07:46:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/109162.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 May 2005 10:09:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 10:09:58 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich möächte gerne etwas machen wenn die form sichtbar ist. Es gibt ca. drei events die man in frage stellen &quot;könnte&quot;. OnCreate, OnActive, OnShow.<br />
Jedoch sind alle drei nicht gut geeignet, da ich die form minimieren will.</p>
<p><strong>OnCreate</strong><br />
- scheint zu früh dazu...</p>
<p><strong>OnActive</strong><br />
- würde gehen, jedoch wird die form jedes mal wieder mnimiert, wenn es den fokus hat...</p>
<p><strong>OnShow</strong><br />
- geht auch nicht....</p>
<p>also wie kann ich das richtig machen? eine unschöne lösung wäre eine bool variable und das event OnActive.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783326</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783326</guid><dc:creator><![CDATA[Xfer]]></dc:creator><pubDate>Sat, 07 May 2005 10:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 10:44:24 GMT]]></title><description><![CDATA[<p>So ganz verstanden habe ich noch nicht, was Du eigentlich machen willst.</p>
<p>Xfer schrieb:</p>
<blockquote>
<p>jedoch wird die form jedes mal wieder mnimiert, wenn es den fokus hat...</p>
</blockquote>
<p>Soll das heißen, wenn der Benutzer die Form aktiviert, dass sie dann sofort wieder minimiert wird?<br />
Das würde mich als Benutzer ziemlich irritieren. Oder hast Du was anderes vor?</p>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783351</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Sat, 07 May 2005 10:44:24 GMT</pubDate></item><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 10:54:46 GMT]]></title><description><![CDATA[<p>ich möchte ja genau das verhindern <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /><br />
ich will nur beim starten der anwendung einmal ein minimieren veranlassen.<br />
wenn der benutzer die anwendung dann wiederherstellt, soll nichts mehr minimiert werden. eben nur einmal wenn die anwendung gestartet wurde. OnCreate ist wiegesgat zu früh für das...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783361</guid><dc:creator><![CDATA[Xfer]]></dc:creator><pubDate>Sat, 07 May 2005 10:54:46 GMT</pubDate></item><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 11:00:12 GMT]]></title><description><![CDATA[<p>Dann verstehe ich den Sinn der ganzen Sache nicht, wenn du die Form anzeigst ist sie ja gar nicht minimiert!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783365</guid><dc:creator><![CDATA[Reyx]]></dc:creator><pubDate>Sat, 07 May 2005 11:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 11:19:19 GMT]]></title><description><![CDATA[<p>hä? also nochmals (genauer)</p>
<p>ich will zur laufkeit, dann wenn die form fertig initialisiert wurde, die form minimieren (in das system tray). wenn man dann die form wiederherstellt soll alles normal weiter geschehen. ich will also nur zum start, die form minimieren (tray). und das geht mit OnCreate nicht. mit OnActive würde es zwar gehen, wenn aber die form wieder den fokus hat, wird sie wieder in den tray minimiert.. mit OnShow geht es auch nicht. also wie mach ich es nun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783379</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783379</guid><dc:creator><![CDATA[Xfer]]></dc:creator><pubDate>Sat, 07 May 2005 11:19:19 GMT</pubDate></item><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 11:27:15 GMT]]></title><description><![CDATA[<p>muss mich kurz korrigieren.<br />
mit OnCreate geht zwar das normale minimieren so, das die form in der taskleiste ist. aber ein komplettes minimieren in den tray, so das in der taskleiste kein eintrag steht (nur ein icon im tray) geht mit OnCreate nicht. das ist dass problem...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783383</guid><dc:creator><![CDATA[Xfer]]></dc:creator><pubDate>Sat, 07 May 2005 11:27:15 GMT</pubDate></item><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 14:52:30 GMT]]></title><description><![CDATA[<p>Xfer schrieb:</p>
<blockquote>
<p>...also wie kann ich das richtig machen? eine unschöne lösung wäre eine bool variable und das event OnActive.</p>
</blockquote>
<p>Was ist dran unschoen???<br />
. mach in OnActivate ne static Boolean- variable FirstActivate<br />
. initialisiere die mit true<br />
. falls bei Aufruf der Methode true, dann minimieren<br />
. am Ende der Methode auf false setzen!</p>
<p>in FormActivate(...):<br />
.<br />
.<br />
static Boolean FirstActivate=true;<br />
if (FirstActivate)<br />
{<br />
// Hier alles was nur beim ersten Activieren aszufuehren ist!!!<br />
FirstActivate=false;<br />
}<br />
//Hier alles, was immer auszufuehren ist!!!<br />
.<br />
.</p>
<p>Voila!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783492</guid><dc:creator><![CDATA[DerAltenburger]]></dc:creator><pubDate>Sat, 07 May 2005 14:52:30 GMT</pubDate></item><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 14:54:55 GMT]]></title><description><![CDATA[<p>hallo,<br />
danke das wusste ich aber schon. ich dachte nur es gibt eine art &quot;für-das&quot; lösung.. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /> egal...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783496</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783496</guid><dc:creator><![CDATA[Xfer]]></dc:creator><pubDate>Sat, 07 May 2005 14:54:55 GMT</pubDate></item><item><title><![CDATA[Reply to Etwas tun wenn die form aktive ist und nur dann on Sat, 07 May 2005 16:14:41 GMT]]></title><description><![CDATA[<p>Könnte man nicht auch ganz normal das OnActivate-Event ohne bool nehmen, und am ende von eben diesem schreiben:</p>
<pre><code>this-&gt;OnActivate=NULL;
</code></pre>
<p>?</p>
<p>mfg<br />
xXx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783539</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783539</guid><dc:creator><![CDATA[-**xXx**-]]></dc:creator><pubDate>Sat, 07 May 2005 16:14:41 GMT</pubDate></item></channel></rss>