<?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[MenuItem zur Laufzeit erstellen]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich möchte ein MenuItem zur Laufzeit erstellen,</p>
<pre><code class="language-cpp">class TForm1 : public TForm
{
__published:	// Von der IDE verwaltete Komponenten
	TMainMenu *MainMenu1;
	TMenuItem *a1;
	TMenuItem *b1;
private:	// Anwender-Deklarationen
public:		// Anwender-Deklarationen
	__fastcall TForm1(TComponent* Owner);
         TMenuItem *c;
};
//--------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
     c = new TMenuItem(MainMenu1);
     c-&gt;Caption =&quot;c&quot;;
     c-&gt;Parent = MainMenu1;
}
</code></pre>
<p>Bekomme aber die Fehlermeldung:<br />
Konvertierung von TMainMenu* nach TMenuItem nicht möglich.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/84144/menuitem-zur-laufzeit-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 16:32:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/84144.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Aug 2004 07:51:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MenuItem zur Laufzeit erstellen on Fri, 27 Aug 2004 07:51:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich möchte ein MenuItem zur Laufzeit erstellen,</p>
<pre><code class="language-cpp">class TForm1 : public TForm
{
__published:	// Von der IDE verwaltete Komponenten
	TMainMenu *MainMenu1;
	TMenuItem *a1;
	TMenuItem *b1;
private:	// Anwender-Deklarationen
public:		// Anwender-Deklarationen
	__fastcall TForm1(TComponent* Owner);
         TMenuItem *c;
};
//--------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
     c = new TMenuItem(MainMenu1);
     c-&gt;Caption =&quot;c&quot;;
     c-&gt;Parent = MainMenu1;
}
</code></pre>
<p>Bekomme aber die Fehlermeldung:<br />
Konvertierung von TMainMenu* nach TMenuItem nicht möglich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/592759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/592759</guid><dc:creator><![CDATA[hermes]]></dc:creator><pubDate>Fri, 27 Aug 2004 07:51:26 GMT</pubDate></item><item><title><![CDATA[Reply to MenuItem zur Laufzeit erstellen on Fri, 27 Aug 2004 08:08:23 GMT]]></title><description><![CDATA[<p>hermes schrieb:</p>
<blockquote>
<p>Ich möchte ein MenuItem zur Laufzeit erstellen,</p>
</blockquote>
<p>Das hatten wir doch <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=83312&amp;highlight=menuitem" rel="nofollow">gerade</a>.<br />
(Mit der Suchfunktion hättest Du Dein Problem schon längst gelöst.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/592771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/592771</guid><dc:creator><![CDATA[dschensky]]></dc:creator><pubDate>Fri, 27 Aug 2004 08:08:23 GMT</pubDate></item></channel></rss>