<?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[Event von auf runtime gemachte shapes]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich hab volgendes problem. Auf runtime mach ich 1000 shapes an. Ich moechte hier ein OnMouseDown event fur programmieren, aber hab keine ahnung wie ich vorgehen soll, weil die shapes erst auf runtime gemacht werden.</p>
<pre><code class="language-cpp">TShape *a[10][10][10];
  int left = 200, top = 40;
  for (int z = 0; z &lt; 10; z++)
    {
      left = left - 10;
      top = top + 10;
      for (int y = 0; y &lt; 10; y++)
        {
          for (int x = 0; x &lt; 10; x++)
            {
                a[x][y][z] = new TShape(Form1);
                a[x][y][z]-&gt;Parent = Panel2;
                a[x][y][z]-&gt;Left = ((x * 30) + left);
                a[x][y][z]-&gt;Top = ((y* 30) + top);
                a[x][y][z]-&gt;Height = 17;
                a[x][y][z]-&gt;Width = 17;
                a[x][y][z]-&gt;Shape = stCircle;
            }
        }
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/105553/event-von-auf-runtime-gemachte-shapes</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 14:12:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/105553.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 Mar 2005 13:00:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Event von auf runtime gemachte shapes on Thu, 31 Mar 2005 13:00:54 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich hab volgendes problem. Auf runtime mach ich 1000 shapes an. Ich moechte hier ein OnMouseDown event fur programmieren, aber hab keine ahnung wie ich vorgehen soll, weil die shapes erst auf runtime gemacht werden.</p>
<pre><code class="language-cpp">TShape *a[10][10][10];
  int left = 200, top = 40;
  for (int z = 0; z &lt; 10; z++)
    {
      left = left - 10;
      top = top + 10;
      for (int y = 0; y &lt; 10; y++)
        {
          for (int x = 0; x &lt; 10; x++)
            {
                a[x][y][z] = new TShape(Form1);
                a[x][y][z]-&gt;Parent = Panel2;
                a[x][y][z]-&gt;Left = ((x * 30) + left);
                a[x][y][z]-&gt;Top = ((y* 30) + top);
                a[x][y][z]-&gt;Height = 17;
                a[x][y][z]-&gt;Width = 17;
                a[x][y][z]-&gt;Shape = stCircle;
            }
        }
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/756631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/756631</guid><dc:creator><![CDATA[strakke-wappie]]></dc:creator><pubDate>Thu, 31 Mar 2005 13:00:54 GMT</pubDate></item><item><title><![CDATA[Reply to Event von auf runtime gemachte shapes on Thu, 31 Mar 2005 13:17:59 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39206" rel="nofollow">FAQ</a></p>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/756657</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/756657</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Thu, 31 Mar 2005 13:17:59 GMT</pubDate></item></channel></rss>