<?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[Forms zur Laufzeit erzeugen]]></title><description><![CDATA[<p>Hi!<br />
Ich würde gern einige Forms zur Laufzeit erstellen.<br />
Meine Klasse:</p>
<pre><code>class Note
{
public:
TForm *Alles;
int Top;
int Width;
int Height;
int Left;
Note();
};
</code></pre>
<p>Mein Konstruktor:</p>
<pre><code>Note::Note(){
Alles-&gt;Parent= Form1;
Alles-&gt;Color = clWhite;
Alles-&gt;Top = 20;
Alles-&gt;Height = 20;
Alles-&gt;Width = 20;
Alles-&gt;Left = 20;
Alles-&gt;Caption =&quot;lol&quot;;
Alles-&gt;Show();
}
</code></pre>
<p>In einer Buttonclick erzeuge ich jetzt eine Instanz der Klasse Note, es wird allerdings keine neue Form angezeigt? Weiß einer woran das liegt? Danke schonmal...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/120010/forms-zur-laufzeit-erzeugen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Jul 2026 22:46:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/120010.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Sep 2005 22:59:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Forms zur Laufzeit erzeugen on Wed, 07 Sep 2005 22:59:52 GMT]]></title><description><![CDATA[<p>Hi!<br />
Ich würde gern einige Forms zur Laufzeit erstellen.<br />
Meine Klasse:</p>
<pre><code>class Note
{
public:
TForm *Alles;
int Top;
int Width;
int Height;
int Left;
Note();
};
</code></pre>
<p>Mein Konstruktor:</p>
<pre><code>Note::Note(){
Alles-&gt;Parent= Form1;
Alles-&gt;Color = clWhite;
Alles-&gt;Top = 20;
Alles-&gt;Height = 20;
Alles-&gt;Width = 20;
Alles-&gt;Left = 20;
Alles-&gt;Caption =&quot;lol&quot;;
Alles-&gt;Show();
}
</code></pre>
<p>In einer Buttonclick erzeuge ich jetzt eine Instanz der Klasse Note, es wird allerdings keine neue Form angezeigt? Weiß einer woran das liegt? Danke schonmal...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/867459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/867459</guid><dc:creator><![CDATA[peetie]]></dc:creator><pubDate>Wed, 07 Sep 2005 22:59:52 GMT</pubDate></item><item><title><![CDATA[Reply to Forms zur Laufzeit erzeugen on Thu, 08 Sep 2005 05:35:07 GMT]]></title><description><![CDATA[<p>Das kommt daher, das du &quot;Alles&quot; nicht mit <strong>new</strong> initialisierst. &quot;Alles&quot; ist im übrigen ein äußerst unpassender Name für eine Form.</p>
<p>Edit: <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39302" rel="nofollow">Public Variablen sind böse</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/867477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/867477</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Thu, 08 Sep 2005 05:35:07 GMT</pubDate></item><item><title><![CDATA[Reply to Forms zur Laufzeit erzeugen on Thu, 08 Sep 2005 11:13:27 GMT]]></title><description><![CDATA[<p>Ah, geht ja sogar, thx.<br />
Das mit den private variablen weiß ich schon, war ja auch nur testzwecken ein kleines Programm...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/867721</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/867721</guid><dc:creator><![CDATA[peetie]]></dc:creator><pubDate>Thu, 08 Sep 2005 11:13:27 GMT</pubDate></item></channel></rss>