<?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[Komponenten-Entwicklung - im Objektinspector bei TPicture Bildeditor aufrufen]]></title><description><![CDATA[<p>ich versuche mich grade mit der Komponentenentwicklung.<br />
jetzt möchte ich im ObjektInspektor ein TPicture anzeigen, und dass man mit dem Button den Bild-Editor aufruft (genau wie bei TImage).<br />
jetzt habe ich aber das problem, dass wenn ich das mit __property löse, die mein TPicture zwar im ObjektInspector auftaucht, aber immer ne fehlermeldung kommt, wenn ich auf die Komponente klicke..</p>
<pre><code class="language-cpp">__published:
   __property  TPicture*     BildDuese     = {read=GetSpray,write=SetSpray};
   __property  TPicture*     BildSektor    = {read=GetSector,write=SetSector};
   // ich denke der Fehler liegt hier und ich habe etwas falsch verstanden

private:
   TPicture* picSector;

protected:
   TPicture*    __fastcall GetSector(){return (picSector);}
   void         __fastcall SetSector(TPicture* pSektor){picSector = pSektor;}
</code></pre>
<p>für jegliche anregungen bin ich dankbar</p>
<p>BigNeal</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/105903/komponenten-entwicklung-im-objektinspector-bei-tpicture-bildeditor-aufrufen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 14:12:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/105903.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Apr 2005 07:07:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Komponenten-Entwicklung - im Objektinspector bei TPicture Bildeditor aufrufen on Mon, 04 Apr 2005 07:07:32 GMT]]></title><description><![CDATA[<p>ich versuche mich grade mit der Komponentenentwicklung.<br />
jetzt möchte ich im ObjektInspektor ein TPicture anzeigen, und dass man mit dem Button den Bild-Editor aufruft (genau wie bei TImage).<br />
jetzt habe ich aber das problem, dass wenn ich das mit __property löse, die mein TPicture zwar im ObjektInspector auftaucht, aber immer ne fehlermeldung kommt, wenn ich auf die Komponente klicke..</p>
<pre><code class="language-cpp">__published:
   __property  TPicture*     BildDuese     = {read=GetSpray,write=SetSpray};
   __property  TPicture*     BildSektor    = {read=GetSector,write=SetSector};
   // ich denke der Fehler liegt hier und ich habe etwas falsch verstanden

private:
   TPicture* picSector;

protected:
   TPicture*    __fastcall GetSector(){return (picSector);}
   void         __fastcall SetSector(TPicture* pSektor){picSector = pSektor;}
</code></pre>
<p>für jegliche anregungen bin ich dankbar</p>
<p>BigNeal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/759388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/759388</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Mon, 04 Apr 2005 07:07:32 GMT</pubDate></item><item><title><![CDATA[Reply to Komponenten-Entwicklung - im Objektinspector bei TPicture Bildeditor aufrufen on Mon, 04 Apr 2005 08:29:10 GMT]]></title><description><![CDATA[<p>ich mache das so, geht natuerlich auch mit einem Graphics::TBitmap</p>
<p>im header:</p>
<pre><code class="language-cpp">private:

    TImage  *FImage;

  protected:

    void      __fastcall SetImage(TPicture *Value);
    TPicture* __fastcall GetImage();

__published:

  __property  TPicture  *Image = { read = GetImage, write = SetImage };
</code></pre>
<p>in der unit:</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
// Get-Funktion für Image-Property
//---------------------------------------------------------------------------
TPicture* __fastcall TRSImagePanel::GetImage()
{
  return FImage-&gt;Picture;
}

//---------------------------------------------------------------------------
// Set-Funktion für Image-Property
//---------------------------------------------------------------------------
void __fastcall TRSImagePanel::SetImage(TPicture *Value)
{
  FImage-&gt;Picture-&gt;Assign(Value);
  FImage-&gt;Refresh();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/759433</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/759433</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Mon, 04 Apr 2005 08:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to Komponenten-Entwicklung - im Objektinspector bei TPicture Bildeditor aufrufen on Mon, 04 Apr 2005 09:13:51 GMT]]></title><description><![CDATA[<p>danke für deine Antwort..<br />
ich habe meinen code soweit angepasst, aber es will immernochnicht klappen</p>
<pre><code class="language-cpp">private:
   TPicture *picSector;

__published:
   __property  TPicture      *BildSektor    = {read=GetSector,write=SetSector};

protected:
   TPicture*    __fastcall GetSector();

   void         __fastcall SetSector(TPicture *pSektor);
</code></pre>
<p>in der Unit</p>
<pre><code class="language-cpp">TPicture* __fastcall TElTecGraph::GetSector()
{
   return (picSector);
}
void __fastcall TElTecGraph::SetSector(TPicture *pSektor)
{
   picSector-&gt;Assign(pSektor);
}
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> bin komplett ratlos <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/759464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/759464</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Mon, 04 Apr 2005 09:13:51 GMT</pubDate></item><item><title><![CDATA[Reply to Komponenten-Entwicklung - im Objektinspector bei TPicture Bildeditor aufrufen on Mon, 04 Apr 2005 09:21:51 GMT]]></title><description><![CDATA[<p>ich habe nun auch eine Test-Komponente nur mit obenangegebenen Code erstellt.<br />
es klappt auch nicht..<br />
hat das noch niemand gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/759468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/759468</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Mon, 04 Apr 2005 09:21:51 GMT</pubDate></item><item><title><![CDATA[Reply to Komponenten-Entwicklung - im Objektinspector bei TPicture Bildeditor aufrufen on Mon, 04 Apr 2005 11:56:19 GMT]]></title><description><![CDATA[<p>BigNeal schrieb:</p>
<blockquote>
<p>private:<br />
TPicture *picSector;</p>
<p>.<br />
.<br />
.</p>
<p>void __fastcall TElTecGraph::SetSector(TPicture *pSektor)<br />
{<br />
picSector-&gt;Assign(pSektor);<br />
}</p>
</blockquote>
<p>**************************************************************************<br />
* *<br />
* Und wo erzeugst Du eine Instanz von picsector???? *<br />
* Das solltest Du im Konstruktor mit new machen!!! *<br />
* Und im Destructor nicgt das deleten vergessen!!! *<br />
* *<br />
**************************************************************************</p>
]]></description><link>https://www.c-plusplus.net/forum/post/759560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/759560</guid><dc:creator><![CDATA[DerAltenburger]]></dc:creator><pubDate>Mon, 04 Apr 2005 11:56:19 GMT</pubDate></item><item><title><![CDATA[Reply to Komponenten-Entwicklung - im Objektinspector bei TPicture Bildeditor aufrufen on Mon, 04 Apr 2005 12:08:08 GMT]]></title><description><![CDATA[<p>habe mich soeben in dich verliebt @ DerAltenburgr <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /><br />
habe wohl vor lauter bäumen den wald nicht mehr gesehen.. naja ist noch montag morgen <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>
<p>thx vielmal</p>
<p>BigNeal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/759573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/759573</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Mon, 04 Apr 2005 12:08:08 GMT</pubDate></item></channel></rss>