<?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[Canvas und Image im Image]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich erstelle zur Laufzeit Images, die ich dann mit Pfeilen verbinde. Direkt in der Form. Nun will ich das in ein PageControl auf eine TabSheet bringen. Dort gibt es kein Canvas. Also habe ich ein Image und will nun meine erstellten Objekte darüber legen, die Pfeile zeichne ich dann auf dem darunterliegenden Image. Wenn ein Image per Drag&amp;Drop bewegt wird zeichne ich alles entsprechend neu.</p>
<p>Nun hab ich aber das Problem, dass nur das Image angezeigt wird, dass bereits zur Entwurfszeit vorhanden ist. Auch BringForont / SendToBack bringt keinen Erfolg.</p>
<p>Hat jemand einen Tip ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/205999/canvas-und-image-im-image</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 21:59:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/205999.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Feb 2008 10:33:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Canvas und Image im Image on Wed, 20 Feb 2008 10:33:51 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich erstelle zur Laufzeit Images, die ich dann mit Pfeilen verbinde. Direkt in der Form. Nun will ich das in ein PageControl auf eine TabSheet bringen. Dort gibt es kein Canvas. Also habe ich ein Image und will nun meine erstellten Objekte darüber legen, die Pfeile zeichne ich dann auf dem darunterliegenden Image. Wenn ein Image per Drag&amp;Drop bewegt wird zeichne ich alles entsprechend neu.</p>
<p>Nun hab ich aber das Problem, dass nur das Image angezeigt wird, dass bereits zur Entwurfszeit vorhanden ist. Auch BringForont / SendToBack bringt keinen Erfolg.</p>
<p>Hat jemand einen Tip ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459314</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459314</guid><dc:creator><![CDATA[Allein]]></dc:creator><pubDate>Wed, 20 Feb 2008 10:33:51 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas und Image im Image on Wed, 20 Feb 2008 10:58:02 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie sieht denn dein Code zum neu Zeichnen nach Drag&amp;Drop aus?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459335</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459335</guid><dc:creator><![CDATA[Kolumbus]]></dc:creator><pubDate>Wed, 20 Feb 2008 10:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas und Image im Image on Wed, 20 Feb 2008 11:18:42 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Image1 ist das Image, das auf dem TabSheet liegt.</p>
<p>Erstellen (wird auch nicht angezeigt)</p>
<pre><code>img[iCount] = new TImage(this);
  img[iCount]-&gt;Name = &quot;imgT&quot; + IntToStr(iCount);
  img[iCount]-&gt;Parent = this;
  img[iCount]-&gt;Width = iGroesse;
  img[iCount]-&gt;Height = iGroesse;
  img[iCount]-&gt;Top = 100;
  img[iCount]-&gt;Left = 200;
  iPos[iCount][0] = 100;
  iPos[iCount][1] = 10;
  iPos[iCount][2] = 100;
  iPos[iCount][3] = 10;
  iPos[iCount][4] = iGroesse;
  if (iTyp == 2)
  {
	Zeichne_Typ2();
  }
  img[iCount]-&gt;Stretch = true;
  img[iCount]-&gt;Proportional = true;
  img[iCount]-&gt;OnClick=Image1Click;
  img[iCount]-&gt;OnMouseDown=Image1MouseDown;
  img[iCount]-&gt;OnMouseMove=Image1MouseMove;
  img[iCount]-&gt;OnMouseUp=Image1MouseUp;
  img[iCount]-&gt;Show();
  img[iCount]-&gt;BringToFront();
</code></pre>
<p>TfrmMain::Image1MouseUp</p>
<pre><code>frmMain-&gt;Image1-&gt;Canvas-&gt;FillRect(ClientRect);
  for (int i = 0; i &lt; iAnzImg; i++)
  {
     img[i]-&gt;Repaint();
  }

  for (int i = 0; i &lt; iRelationCount; i++)
  {
     img[iRelation[i][0&rsqb;&rsqb;-&gt;BringToFront();
     img[iRelation[i][1&rsqb;&rsqb;-&gt;BringToFront();
  }

   for (int i = 0; i &lt; iRelationCount + 1; i++)
   {
     frmMain-&gt;Image1-&gt;Canvas-&gt;Pen-&gt;Style = psSolid;
      if (iRelation[i][2] == 2)
      {
         frmMain-&gt;Image1-&gt;Canvas-&gt;Pen-&gt;Style = psDot; // psDash
      }

      // Diverser Code zum Füllen von Arrays
      frmMain-&gt;Image1-&gt;Canvas-&gt;MoveTo(img[iRelationVonZu[i][0&rsqb;&rsqb;-&gt;Left, img[iRelationVonZu[i][0&rsqb;&rsqb;-&gt;Top);
      frmMain-&gt;Image1-&gt;Canvas-&gt;LineTo(iLeft, iTop);
      cpic_draw_arrow(img[iRelationVonZu[i][0&rsqb;&rsqb;-&gt;Left, img[iRelationVonZu[i][0&rsqb;&rsqb;-&gt;Top, iLeft, iTop, true);
   }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1459349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459349</guid><dc:creator><![CDATA[Allein]]></dc:creator><pubDate>Wed, 20 Feb 2008 11:18:42 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas und Image im Image on Wed, 20 Feb 2008 11:32:15 GMT]]></title><description><![CDATA[<p>Er stellt es wohl unter dem PageControl da.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459359</guid><dc:creator><![CDATA[Allein]]></dc:creator><pubDate>Wed, 20 Feb 2008 11:32:15 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas und Image im Image on Wed, 20 Feb 2008 11:37:18 GMT]]></title><description><![CDATA[<p>Ich probiers mal mit meinem eingeschränkten Wissen, das ist nur als Anregung zu sehen:</p>
<pre><code class="language-cpp">img[iCount] = new TImage(this); // &lt;= wird hier der korrekte Parent zugewiesen?
  img[iCount]-&gt;Name = &quot;imgT&quot; + IntToStr(iCount);
  img[iCount]-&gt;Parent = this; // &lt;= wird hier der korrekte Parent zugewiesen?
  img[iCount]-&gt;Width = iGroesse;
  img[iCount]-&gt;Height = iGroesse;
  img[iCount]-&gt;Top = 100; // &lt;= vielleicht muss hier die Angabe relativ erfolgen,
// wenn der Parent die Form und nicht Tabsheet ist (Tabsheet-Topwert +/- 100)?
  img[iCount]-&gt;Left = 200; // &lt;= siehe Top-Wert
  iPos[iCount][0] = 100;
  iPos[iCount][1] = 10;
  iPos[iCount][2] = 100;
  iPos[iCount][3] = 10;
  iPos[iCount][4] = iGroesse;
  if (iTyp == 2)
  {
    Zeichne_Typ2();
  }
  img[iCount]-&gt;Stretch = true;
  img[iCount]-&gt;Proportional = true;
  img[iCount]-&gt;OnClick=Image1Click;
  img[iCount]-&gt;OnMouseDown=Image1MouseDown;
  img[iCount]-&gt;OnMouseMove=Image1MouseMove;
  img[iCount]-&gt;OnMouseUp=Image1MouseUp;
  img[iCount]-&gt;Show();
  img[iCount]-&gt;BringToFront();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1459362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459362</guid><dc:creator><![CDATA[Kolumbus]]></dc:creator><pubDate>Wed, 20 Feb 2008 11:37:18 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas und Image im Image on Wed, 20 Feb 2008 11:47:55 GMT]]></title><description><![CDATA[<p>img[iCount] = new TImage(Image1);<br />
img[iCount]-&gt;Name = &quot;imgT&quot; + IntToStr(iCount);<br />
img[iCount]-&gt;Parent = TabSheet1;</p>
<p>DANKE ! So geht es !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459365</guid><dc:creator><![CDATA[Allein]]></dc:creator><pubDate>Wed, 20 Feb 2008 11:47:55 GMT</pubDate></item></channel></rss>