<?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[OnClose arbeitet fehlerhaft?]]></title><description><![CDATA[<p>Hi.</p>
<p>Ich denke zwar eher das ich aufn Holzweg bin..... aber vielleicht verrät mir jemand ja die Lösung.</p>
<p>Also..... ich habe eine Hauptform und rufe per Button eine 2. Form auf.<br />
Beim beenden meines Programmes möchte ich das die Position wo die 2. Form zuletzt stand gespeichert wird.</p>
<p>Das mache ich momentan dadurch das ich in die OnClose der 2. Form in eine INI schreibe was auch super klappt.</p>
<p>Das Problem ist jetzt das wenn ich das Programm beende indem ich das Hauptfenster schliesse er nicht in die OnClose vom 2. Fenster geht.</p>
<p>Solange ich das 2. Fenster per Hand schliesse ist alles in Ordnung, aber wenn ich direkt das Hauptfenster schliesse schreibt er nicht in die INI.</p>
<p>Die Frage nun ist A) Wieso? und <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--smiling_face_with_sunglasses"
      title="B)"
      alt="😎"
    /> wie sinnvollerweise dann?</p>
<p>Also Lösung wäre es in die OnClose von der Hauptform zu schreiben. Das möchte ich aber nicht wirklich da es dort nicht reingehört.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/91840/onclose-arbeitet-fehlerhaft</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 03:40:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/91840.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Nov 2004 17:32:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Fri, 12 Nov 2004 17:32:24 GMT]]></title><description><![CDATA[<p>Hi.</p>
<p>Ich denke zwar eher das ich aufn Holzweg bin..... aber vielleicht verrät mir jemand ja die Lösung.</p>
<p>Also..... ich habe eine Hauptform und rufe per Button eine 2. Form auf.<br />
Beim beenden meines Programmes möchte ich das die Position wo die 2. Form zuletzt stand gespeichert wird.</p>
<p>Das mache ich momentan dadurch das ich in die OnClose der 2. Form in eine INI schreibe was auch super klappt.</p>
<p>Das Problem ist jetzt das wenn ich das Programm beende indem ich das Hauptfenster schliesse er nicht in die OnClose vom 2. Fenster geht.</p>
<p>Solange ich das 2. Fenster per Hand schliesse ist alles in Ordnung, aber wenn ich direkt das Hauptfenster schliesse schreibt er nicht in die INI.</p>
<p>Die Frage nun ist A) Wieso? und <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--smiling_face_with_sunglasses"
      title="B)"
      alt="😎"
    /> wie sinnvollerweise dann?</p>
<p>Also Lösung wäre es in die OnClose von der Hauptform zu schreiben. Das möchte ich aber nicht wirklich da es dort nicht reingehört.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/650503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650503</guid><dc:creator><![CDATA[tribleX]]></dc:creator><pubDate>Fri, 12 Nov 2004 17:32:24 GMT</pubDate></item><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Fri, 12 Nov 2004 17:54:43 GMT]]></title><description><![CDATA[<p>Lösung:</p>
<pre><code>void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &amp;Action)
{
Form2-&gt;Close();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/650524</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650524</guid><dc:creator><![CDATA[T_B__]]></dc:creator><pubDate>Fri, 12 Nov 2004 17:54:43 GMT</pubDate></item><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Fri, 12 Nov 2004 17:55:09 GMT]]></title><description><![CDATA[<p>Du mußt das in CloseQuery rein tun..</p>
<p>Soviel ich weiß, ist Close() nur eine Methode, die das fenster schließt und dann das CloseQuery aufruft. Und das X. ruft immer CloseQuery auf. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/650526</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650526</guid><dc:creator><![CDATA[DJ BlackEagle]]></dc:creator><pubDate>Fri, 12 Nov 2004 17:55:09 GMT</pubDate></item><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Fri, 12 Nov 2004 17:59:59 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7517">@T_B__</a><br />
Wenn man sehr viele Unterfenster hat, würde dort eine Armada an Einträgen stehen.<br />
Es mag eine Lösung sein, aber eine tolle ist es nicht.</p>
<p>@DJ BlackEagle<br />
Nope. Das bringt es leider auch nicht. Auch OnCloseQuery scheint beim CBuilder5 einfach übergangen zu werden.</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/650531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650531</guid><dc:creator><![CDATA[tribleX]]></dc:creator><pubDate>Fri, 12 Nov 2004 17:59:59 GMT</pubDate></item><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Fri, 12 Nov 2004 18:39:29 GMT]]></title><description><![CDATA[<p>Und was ist mit OnDestroy() ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/650552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650552</guid><dc:creator><![CDATA[DerAltenburger]]></dc:creator><pubDate>Fri, 12 Nov 2004 18:39:29 GMT</pubDate></item><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Fri, 12 Nov 2004 18:42:06 GMT]]></title><description><![CDATA[<p>Argh, an OnDestroy habe ich ja nun garnicht gedacht.<br />
Noch nie nötig gewesen es zu benutzen <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>
<p>Danke dir &quot;DerAltenburger&quot;. So klappts nun endlich <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="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/650554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650554</guid><dc:creator><![CDATA[tribleX]]></dc:creator><pubDate>Fri, 12 Nov 2004 18:42:06 GMT</pubDate></item><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Sat, 13 Nov 2004 10:06:00 GMT]]></title><description><![CDATA[<p>Kann man das schließen eines Fensters auch irgendwie aufhalten? Wenn man z.B. auf das X klickt, und dann in einer MessageBox auf Abbrechen, dann soll das Fenster ja nicht geschlossen werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/650750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650750</guid><dc:creator><![CDATA[snOOfy]]></dc:creator><pubDate>Sat, 13 Nov 2004 10:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Sat, 13 Nov 2004 10:56:48 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>- FormCloseQuery<br />
- CanClose</p>
<p>MfG<br />
Klaus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/650771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650771</guid><dc:creator><![CDATA[KlausB]]></dc:creator><pubDate>Sat, 13 Nov 2004 10:56:48 GMT</pubDate></item><item><title><![CDATA[Reply to OnClose arbeitet fehlerhaft? on Sat, 13 Nov 2004 12:09:25 GMT]]></title><description><![CDATA[<p>Ah, vielen Dank.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/650819</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/650819</guid><dc:creator><![CDATA[snOOfy]]></dc:creator><pubDate>Sat, 13 Nov 2004 12:09:25 GMT</pubDate></item></channel></rss>