<?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[Form innerhalb einer Form]]></title><description><![CDATA[<p>Hallo,</p>
<p>Besteht eine Möglichkeit (Außer MDI-Child bzw. MDI-Parent - da dann der Borderstyle nicht veränderbar ist), eine Form nur innerhalb einer anderen Form zu bewegen.</p>
<p>Wie im Anhang zu erkennen ist, ist die 2te Form &quot;Werkzeugleiste&quot; jederzeit aus der &quot;Main&quot;-Form zu bewegen, dies möchte ich unterbinden. (Photoshop-Typisch)</p>
<p><a href="http://www.1-filehost.midnightirc.info/index.php?t=dl&amp;hash=35xCv1FziJ8H16L4ou8N6L0fPdE2C0AG" rel="nofollow">http://www.1-filehost.midnightirc.info/index.php?t=dl&amp;hash=35xCv1FziJ8H16L4ou8N6L0fPdE2C0AG</a></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/205925/form-innerhalb-einer-form</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 21:59:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/205925.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Feb 2008 14:58:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Form innerhalb einer Form on Tue, 19 Feb 2008 14:58:30 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Besteht eine Möglichkeit (Außer MDI-Child bzw. MDI-Parent - da dann der Borderstyle nicht veränderbar ist), eine Form nur innerhalb einer anderen Form zu bewegen.</p>
<p>Wie im Anhang zu erkennen ist, ist die 2te Form &quot;Werkzeugleiste&quot; jederzeit aus der &quot;Main&quot;-Form zu bewegen, dies möchte ich unterbinden. (Photoshop-Typisch)</p>
<p><a href="http://www.1-filehost.midnightirc.info/index.php?t=dl&amp;hash=35xCv1FziJ8H16L4ou8N6L0fPdE2C0AG" rel="nofollow">http://www.1-filehost.midnightirc.info/index.php?t=dl&amp;hash=35xCv1FziJ8H16L4ou8N6L0fPdE2C0AG</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1458920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1458920</guid><dc:creator><![CDATA[darkkiller_]]></dc:creator><pubDate>Tue, 19 Feb 2008 14:58:30 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Tue, 19 Feb 2008 15:51:55 GMT]]></title><description><![CDATA[<p>Es gibt doch Anwendungen, in denen kann man Toolbars zwar herausziehen, aber sie schnappen wieder zurück an ihre alte Stelle oder an den äußersten Rand, sobald man die Maustaste loslässt. Das würde über eine einfache Überprüfung der Koordinaten gehen, stell' ich mir so vor... Wenn irgendeine Ecke außerhalb der Hauptform ist, wird die Toolbar am Ursprung positioniert, oder am Rand der Hauptform. Nur so als Alternativ-Idee. <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/1458954</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1458954</guid><dc:creator><![CDATA[Kolumbus]]></dc:creator><pubDate>Tue, 19 Feb 2008 15:51:55 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Tue, 19 Feb 2008 16:23:43 GMT]]></title><description><![CDATA[<p>Du könntest ja WM_MOVING dieser Form abfangen (wie: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39149.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39149.html</a>) und dann bei Bedarf bewegung über die Form hinaus verbieten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1458980</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1458980</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 19 Feb 2008 16:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Tue, 19 Feb 2008 22:58:45 GMT]]></title><description><![CDATA[<p>Du kannst auch einfach der Form2 die Form1 als Parent zuweisen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459174</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459174</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Tue, 19 Feb 2008 22:58:45 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Wed, 20 Feb 2008 13:22:37 GMT]]></title><description><![CDATA[<p>Frames.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459433</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459433</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Wed, 20 Feb 2008 13:22:37 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Wed, 20 Feb 2008 15:13:27 GMT]]></title><description><![CDATA[<p>Jansen schrieb:</p>
<blockquote>
<p>Du kannst auch einfach der Form2 die Form1 als Parent zuweisen.</p>
</blockquote>
<p>Das wars <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="😉"
    /><br />
genau das wollte ich !<br />
Danke !</p>
<p>So nun zum nächsten problem,..</p>
<p>Ich generiere meine dynamischen Forms nun, jetzt möchte ich aber gewisse aktionen nur auf die momentan aktive form anwenden.<br />
Ich muss nun heruasfinden welche Form momentan aktiv ist.,,.... gibt es hierfür eine Möglichkeit ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459535</guid><dc:creator><![CDATA[darkkiller_]]></dc:creator><pubDate>Wed, 20 Feb 2008 15:13:27 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Wed, 20 Feb 2008 16:06:11 GMT]]></title><description><![CDATA[<p>siehe <em>TScreen ActiveForm</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459589</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459589</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 20 Feb 2008 16:06:11 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Wed, 20 Feb 2008 16:23:57 GMT]]></title><description><![CDATA[<p>Linnea schrieb:</p>
<blockquote>
<p>siehe <em>TScreen ActiveForm</em></p>
</blockquote>
<p>hmm...<br />
Kleine Verständnissfrage...</p>
<p>bei jedem button druck erzeuge ich eine neue Form</p>
<pre><code class="language-cpp">TForm *Window = new TForm(this);
</code></pre>
<p>Kann ich über TScreen ActiveForm bzw. Screen heruasfinden welches Form active ist oder ?<br />
Wie kann ich dann auf genau dieses Form und dessen Elemente zugreifen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459603</guid><dc:creator><![CDATA[darkkiller_]]></dc:creator><pubDate>Wed, 20 Feb 2008 16:23:57 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Wed, 20 Feb 2008 16:30:17 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>darkkiller_ schrieb:</p>
<blockquote>
<p>Kann ich über TScreen ActiveForm bzw. Screen heruasfinden welches Form active ist oder ?</p>
</blockquote>
<p>Diese Frage hättest du nun wirklich durch Nachlesen in der BCB-Hilfe zu genannter Eigenschaft selbst beantworten können.</p>
<blockquote>
<p>Wie kann ich dann auf genau dieses Form und dessen Elemente zugreifen ?</p>
</blockquote>
<p>Du hast einer Pointer vom Typ TForm. Wenn der dir nicht ausreicht sondern du wirklich genauen Typ deiner Formklasse brauchst wäre es am leichtesten mit dynamic_cast zu prüfen und zu casten.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459605</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 20 Feb 2008 16:30:17 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Wed, 20 Feb 2008 16:42:47 GMT]]></title><description><![CDATA[<p>Habs bereits heruasgefunden,...<br />
Weiters dass das der falsche Weg ist, da mein Button der dies durchführt eine eigene Form hat und somit ist immer meine &quot;Werkzeugleiste-Form&quot; die zuletzt aktive,...<br />
Tja anderer Lösungsweg, ich schreibe mir global immer den pointer auf die zuletzt aktive Form &quot;zur Seite&quot;,...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459611</guid><dc:creator><![CDATA[darkkiller_]]></dc:creator><pubDate>Wed, 20 Feb 2008 16:42:47 GMT</pubDate></item><item><title><![CDATA[Reply to Form innerhalb einer Form on Wed, 20 Feb 2008 16:50:34 GMT]]></title><description><![CDATA[<p>gesagt getan,..</p>
<p>Window-&gt;OnClick=MarkAsActive;</p>
<p>in der main.h</p>
<pre><code class="language-cpp">void __fastcall MarkAsActive(TObject *Sender);
</code></pre>
<p>in der main.cpp</p>
<pre><code class="language-cpp">void __fastcall TForm1::MarkAsActive(TObject *Sender)
{
	Sleep(1000); //Test
}
</code></pre>
<p>Breakpoint,.. doch er sprint leider nie in die Funktion <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="😕"
    /><br />
Habe ich etwas übersehen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459615</guid><dc:creator><![CDATA[darkkiller_]]></dc:creator><pubDate>Wed, 20 Feb 2008 16:50:34 GMT</pubDate></item></channel></rss>