<?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[!!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen]]></title><description><![CDATA[<p>Hallo,<br />
da ich neu bin hab ich sicherlich eine doofe Frage gut, und zwar Programmiere ich im Boland Builder 6 und habe folgenden Source:</p>
<p>int xmax, ymax, xmaxhaelfte, ymaxhaelfte;<br />
xmax=Form1-&gt;PaintBox1-&gt;Width;<br />
ymax=Form1-&gt;PaintBox1-&gt;Height;<br />
xmaxhaelfte=ymax/2;<br />
ymaxhaelfte=xmax/2;<br />
Form1-&gt;PaintBox1-&gt;Canvas-&gt;MoveTo(xmaxhaelfte,0);<br />
Form1-&gt;PaintBox1-&gt;Canvas-&gt;LineTo(xmaxhaelfte,ymax);<br />
Form1-&gt;PaintBox1-&gt;Canvas-&gt;MoveTo(0,xmaxhaelfte);<br />
Form1-&gt;PaintBox1-&gt;Canvas-&gt;LineTo(ymax,xmaxhaelfte);</p>
<p>diesen habe ich in ein Funktion gepackt und möchte ihn beim Programm start ausführen lassen.</p>
<p>Wie funktioniert das??? Muss ich irgendwo etwas im Objektinspektor eingeben?</p>
<p>Gruß,</p>
<p>Marc</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121391/n00b-problem-beim-start-von-einem-programm-funktion-ausführen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Jul 2026 09:31:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121391.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Sep 2005 20:13:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Thu, 22 Sep 2005 20:13:45 GMT]]></title><description><![CDATA[<p>Hallo,<br />
da ich neu bin hab ich sicherlich eine doofe Frage gut, und zwar Programmiere ich im Boland Builder 6 und habe folgenden Source:</p>
<p>int xmax, ymax, xmaxhaelfte, ymaxhaelfte;<br />
xmax=Form1-&gt;PaintBox1-&gt;Width;<br />
ymax=Form1-&gt;PaintBox1-&gt;Height;<br />
xmaxhaelfte=ymax/2;<br />
ymaxhaelfte=xmax/2;<br />
Form1-&gt;PaintBox1-&gt;Canvas-&gt;MoveTo(xmaxhaelfte,0);<br />
Form1-&gt;PaintBox1-&gt;Canvas-&gt;LineTo(xmaxhaelfte,ymax);<br />
Form1-&gt;PaintBox1-&gt;Canvas-&gt;MoveTo(0,xmaxhaelfte);<br />
Form1-&gt;PaintBox1-&gt;Canvas-&gt;LineTo(ymax,xmaxhaelfte);</p>
<p>diesen habe ich in ein Funktion gepackt und möchte ihn beim Programm start ausführen lassen.</p>
<p>Wie funktioniert das??? Muss ich irgendwo etwas im Objektinspektor eingeben?</p>
<p>Gruß,</p>
<p>Marc</p>
]]></description><link>https://www.c-plusplus.net/forum/post/878129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878129</guid><dc:creator><![CDATA[Hatschi0]]></dc:creator><pubDate>Thu, 22 Sep 2005 20:13:45 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Thu, 22 Sep 2005 20:24:02 GMT]]></title><description><![CDATA[<p>Wird sind hier nicht bei eBay. <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/878140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878140</guid><dc:creator><![CDATA[masterofx32]]></dc:creator><pubDate>Thu, 22 Sep 2005 20:24:02 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Thu, 22 Sep 2005 20:38:29 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Erstmal bist Du hier im falschen Forum...</p>
<p>Ich weiß nicht, wie der Borland-Builder reagiert, aber VC würde mit einem ähnlichen Code beim Progstart eine Speicherschutzverletzung bekommen.</p>
<p>Es gibt sicherlich eine OnInit-Methode des Fensters / der Form, in der Du eine solche Funktionalität reinschreiben kannst (Methode in der vererbten Klasse überschreiben, in der Methode die Orignialmethode aufrufen und dann Deinen Code ausführen). Wie gesagt, ich kenne mich mit dem Builder nicht aus, aber so etwas in der Art müsste existieren.</p>
<p>Grüße<br />
Richie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/878147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878147</guid><dc:creator><![CDATA[Richie_Gecco]]></dc:creator><pubDate>Thu, 22 Sep 2005 20:38:29 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Thu, 22 Sep 2005 20:38:59 GMT]]></title><description><![CDATA[<p>gesundheit</p>
]]></description><link>https://www.c-plusplus.net/forum/post/878148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878148</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Thu, 22 Sep 2005 20:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Thu, 22 Sep 2005 20:44:22 GMT]]></title><description><![CDATA[<p>Hört sich nicht so an als hättest du bereits ausreichend Grundkenntnisse für den Einstieg in eine GUI Library, wenn ich mich da irre und du schon länger programmierst dann entschuldige bitte. Ansonsten:</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> Datei-&gt;Neu-&gt;Konsolenexperte (VCL und Multithread deaktivieren)</p>
<p><a href="http://www.volkard.de/vcppkold/inhalt.html" rel="nofollow">http://www.volkard.de/vcppkold/inhalt.html</a><br />
<a href="http://tutorial.schornboeck.net/inhalt.htm" rel="nofollow">http://tutorial.schornboeck.net/inhalt.htm</a></p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/878156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878156</guid><dc:creator><![CDATA[FireFlow]]></dc:creator><pubDate>Thu, 22 Sep 2005 20:44:22 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Fri, 23 Sep 2005 10:37:38 GMT]]></title><description><![CDATA[<p>den code führste in TForm1-&gt;OnCreate aus(unter der vorraussetzung, dass dein formular tform1 heisst)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/878452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878452</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Fri, 23 Sep 2005 10:37:38 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Fri, 23 Sep 2005 11:21:48 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>OnCreate ist nicht günstig, dazu gibt es einen Thread im BCB-Forum.<br />
grundsätzlich würde ich TForm::OnPaint nehmen, dann ist die Canvas-Ausgabe immer zu sehen, auch nach Redraw des Forms.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/878501</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878501</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 23 Sep 2005 11:21:48 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Fri, 23 Sep 2005 11:39:59 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Noch besser wäre hier wohl der OnPaint der Paintbox selbst.<br />
Irgendwer sollte diesen Thread aber mal ins BCB-Forum verschieben.</p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/post/878518</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878518</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 23 Sep 2005 11:39:59 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Fri, 23 Sep 2005 12:03:06 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/878537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878537</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Fri, 23 Sep 2005 12:03:06 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Fri, 23 Sep 2005 21:57:39 GMT]]></title><description><![CDATA[<p>Gude!<br />
also am besten schreibs du in den Konstruktor en verweiß in die Funktion die du dort hast <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 />
bis denne</p>
]]></description><link>https://www.c-plusplus.net/forum/post/878892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/878892</guid><dc:creator><![CDATA[auer86]]></dc:creator><pubDate>Fri, 23 Sep 2005 21:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to !!! N00b Problem !!! Beim Start von einem Programm Funktion ausführen on Sat, 24 Sep 2005 10:53:38 GMT]]></title><description><![CDATA[<p>Das Problem habe ich doch alleine gelöst bekommen... Habe die OnPaint Lösung genommen, die mir hier auch vorgeschlagen wurden ist. Der Vorteil gegenüber der OnCreate ist das der die Fuktion ja erst ausführen kann nachdem die Paintbox geladen ist. Daher ist OnPaint die bessere lösung.</p>
<p>Zu dem Thema das ich nicht so lange Programmieren würde. Also ich Programmiere ca. seite 2 Jahren C und seit ca. einem halben Jahr gelegentlich C++ und dann halt Projektorientiert im Builder.</p>
<p>Trotzdem dickes sorry das ich im Falschen Thread gepostet hab.</p>
<p>Nochmal danke,</p>
<p>Gruß,</p>
<p>Hatschi0</p>
]]></description><link>https://www.c-plusplus.net/forum/post/879022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/879022</guid><dc:creator><![CDATA[Hatschi0]]></dc:creator><pubDate>Sat, 24 Sep 2005 10:53:38 GMT</pubDate></item></channel></rss>