<?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[Button Release]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es einen Button der die Eigenschaft onRelease hat oder sonst eine Möglichkeit das Loslassen eines Buttons zu benutzen?</p>
<p>Gruß Mark</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196667/button-release</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 13:06:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196667.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Nov 2007 14:49:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 14:49:10 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es einen Button der die Eigenschaft onRelease hat oder sonst eine Möglichkeit das Loslassen eines Buttons zu benutzen?</p>
<p>Gruß Mark</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395912</guid><dc:creator><![CDATA[heutmalhier]]></dc:creator><pubDate>Thu, 01 Nov 2007 14:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 14:50:11 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Du kannst doch OnKeyUp dafür nutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395913</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 01 Nov 2007 14:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 15:18:38 GMT]]></title><description><![CDATA[<p>ich habe einen dyn. erstellten Button und kann die die Action so wohl nicht zuweisen</p>
<pre><code class="language-cpp">button[i]-&gt;OnKeyUp=Action4Execute;
</code></pre>
<p>Das bringt diesen Fehler:<br />
[C++ Fehler] Unit1.cpp(76): E2034 Konvertierung von 'void (_fastcall * (_closure )(TObject *))(TObject *)' nach 'void (_fastcall * (_closure )(TObject *,unsigned short &amp;,TShiftState))(TObject *,unsigned short &amp;,TShiftState)' nicht möglich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395926</guid><dc:creator><![CDATA[heutmalhier]]></dc:creator><pubDate>Thu, 01 Nov 2007 15:18:38 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 15:30:22 GMT]]></title><description><![CDATA[<p>Dann hat Action4Execute wohl den falschen Typ. Erstell dir doch einfach mal eine OnKeyUp-Eventfunktion mit dem Objektinspektur und schau dir deren Signatu an. Du kannst sie natürlich auch gleich benutzen.<br />
Die Fehlermeldung sagt das übrigens klar aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395941</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395941</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 01 Nov 2007 15:30:22 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 16:10:35 GMT]]></title><description><![CDATA[<p>Die Signatur kann ich aber nicht dynamisch erstellen und einem dynamischen erstellten Button zuweisen.<br />
Ich brauche ja je Button die gleiche Action (oder als Klasse-gibt den gleichen Fehler) um den Sender zu ermitteln und den individuellen Code auszuführen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395964</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395964</guid><dc:creator><![CDATA[heutmalhier]]></dc:creator><pubDate>Thu, 01 Nov 2007 16:10:35 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 16:24:41 GMT]]></title><description><![CDATA[<p>Die Funktion kannst du doch auch nicht dynamisch erstellen. Die muß doch schon zur Compilierzeit feststehen. Die Funktion die du zuweisen willst muss die korrekte Signatur haben.<br />
Wenn du unbedingt deine Action4Execute haben willst, rufe die doch innerhalb der OnKeyUp auf.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395971</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 01 Nov 2007 16:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 16:46:39 GMT]]></title><description><![CDATA[<p>Ich habe bisher in der Action das:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Action4Execute(TObject *Sender)
{
    AnsiString data1;
    AnsiString str_button1;
    String datenpaket1;
    for(int i=0; i &lt; Form1-&gt;ComponentCount; i++)
    {
        if (Form1-&gt;Components[i]-&gt;ClassNameIs(&quot;TButton&quot;))
        {
            for(int n=0;n&lt;40;n++)
            {
            str_button1= &quot;FlashButton&quot;+IntToStr(n+101);
            if (dynamic_cast&lt;TButton*&gt;(Sender)-&gt;Name == str_button1)
            {
            data1=IntToStr(n+1);
            datenpaket1=&quot;kanal001&quot;+data1+&quot;App&quot;;
            Edit2-&gt;Text=data1;
            Edit3-&gt;Text=datenpaket1;
            }
            else;
            }
        }
        else;
    }
}
</code></pre>
<p>Und jetzt verstehe ich die Deine Tipps nicht (habe wohl noch zu wenig Ahnung)<br />
Innerhalb von onKeyUp bekomme ich halt nicht hin, weil wie gesagt die Button dyn. erstellt werden und in der Designtime erstellen will ich nicht, weil es bis zu 240 werden können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395978</guid><dc:creator><![CDATA[heutmalhier]]></dc:creator><pubDate>Thu, 01 Nov 2007 16:46:39 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 16:56:56 GMT]]></title><description><![CDATA[<p>Wenn du mit Hilfe des Objektinspektors ein Funktion für OnKeyUp erstellst sieht die etwa so aus. Darin kannst du dann deine Action4Execute aufrufen.</p>
<pre><code class="language-cpp">void __fastcall TForm1::KeyUp(TObject *Sender,
      WORD &amp;Key, TShiftState Shift)
{
  Action4Execute(Sender);
}

//Zuweisen
button[i]-&gt;OnKeyUp = KeyUp;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1395982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395982</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 01 Nov 2007 16:56:56 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 17:55:05 GMT]]></title><description><![CDATA[<p>Das wird aber nur gehen, wenn Du auch einen Key gedrückt hattest! Mit der Maus geht das so nicht.</p>
<p>Gruß myerscola</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396017</guid><dc:creator><![CDATA[myerscola]]></dc:creator><pubDate>Thu, 01 Nov 2007 17:55:05 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 18:24:25 GMT]]></title><description><![CDATA[<p>habe ich bemerkt, und das gleiche mit MouseUp geht auch nicht:<br />
[C++ Fehler] Unit1.cpp(76): E2034 Konvertierung von 'void (_fastcall * (_closure )(TObject *,TMouseButton,TShiftState,int,int))(TObject *,TMouseButton,TShiftState,int,int)' nach 'void (_fastcall * (_closure )(TObject *,unsigned short &amp;,TShiftState))(TObject *,unsigned short &amp;,TShiftState)' nicht möglich</p>
<p>und KeyUp bringt diese Warnung, geht aber:<br />
[C++ Warnung] Unit1.h(70): W8022 '_fastcall TForm1::KeyUp(TObject *,unsigned short &amp;,TShiftState)' verbirgt virtuelle Funktion '_fastcall TWinControl::KeyUp(unsigned short &amp;,TShiftState)'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396033</guid><dc:creator><![CDATA[heutmalhier]]></dc:creator><pubDate>Thu, 01 Nov 2007 18:24:25 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 18:55:43 GMT]]></title><description><![CDATA[<p>heutmalhier schrieb:</p>
<blockquote>
<p>habe ich bemerkt, und das gleiche mit MouseUp geht auch nicht:</p>
</blockquote>
<p>Was genau heisst &quot;geht nicht&quot;? Bei welchem Code kommt die Fehlermeldung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396057</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 01 Nov 2007 18:55:43 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 19:05:00 GMT]]></title><description><![CDATA[<p>die Fehlermeldung habe ich vorhin schon gepostet:</p>
<p>heutmalhier schrieb:</p>
<blockquote>
<p>habe ich bemerkt, und das gleiche mit MouseUp geht auch nicht:<br />
[C++ Fehler] Unit1.cpp(76): E2034 Konvertierung von 'void (_fastcall * (_closure )(TObject *,TMouseButton,TShiftState,int,int))(TObject *,TMouseButton,TShiftState,int,int)' nach 'void (_fastcall * (_closure )(TObject *,unsigned short &amp;,TShiftState))(TObject *,unsigned short &amp;,TShiftState)' nicht möglich</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1396061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396061</guid><dc:creator><![CDATA[heutmalhier]]></dc:creator><pubDate>Thu, 01 Nov 2007 19:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 19:16:22 GMT]]></title><description><![CDATA[<p>den hatte ich nicht gepostet:</p>
<p>[Linker Fehler] Unresolved external '__fastcall TForm1::MouseUp(System::TObject *, Controls::TMouseButton, System::Set&lt;Classes::Classes__1, 0, 6&gt;, int, int)' referenced from D:\AKTUELLE PROJEKTE\MINIS\UDP LIGH@TNIGHT\UNIT1.OBJ</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396065</guid><dc:creator><![CDATA[heutmalhier]]></dc:creator><pubDate>Thu, 01 Nov 2007 19:16:22 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Thu, 01 Nov 2007 20:10:37 GMT]]></title><description><![CDATA[<p>Wie gesagt, es wäre hilfreich, wenn du auch mal den Code postest, der die Fehlermeldung verursacht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396077</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 01 Nov 2007 20:10:37 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Fri, 02 Nov 2007 08:38:23 GMT]]></title><description><![CDATA[<p>Die erste Fehlermeldung wird einfach dadurch verursacht, dass du dem OnMouseUp-Event eine Funktion mit der Signatur von OnKeyUp versuchst zuzuweisen. Für OnMouseUp musst du auch erstmal eine Eventfunktion mit dem Objektinspektor erstellen und die dann verwenden. Du kannst nicht einfach die OnKeyUp-Funktion dafür verwenden.<br />
Der zweite Fehler wird sicher dadurch verursacht, dass du eine Funktion mit dem Namen MouseUp zwar deklariert aber nicht definiert hast. Evtl. stimmt auch einfach nur die Parameterliste bei der Definition nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396236</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 02 Nov 2007 08:38:23 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Fri, 02 Nov 2007 09:17:35 GMT]]></title><description><![CDATA[<p>erst mal vielen Dank an die Helfer, so funktioniert es jetzt.<br />
Ich habe nochmal den ganzen Müll der Versuche löschen müssen und dannging es auf Anhieb.<br />
im Header:</p>
<pre><code class="language-cpp">void __fastcall MouseUp(TObject *Sender,TMouseButton Button, TShiftState Shift, int X, int Y);
        void __fastcall MouseDown(TObject *Sender,TMouseButton Button, TShiftState Shift, int X, int Y);
</code></pre>
<p>Die Zuweisung:</p>
<pre><code class="language-cpp">button[i]-&gt;OnMouseDown=MouseDown;
    button[i]-&gt;OnMouseUp=MouseUp;
</code></pre>
<p>Und die Methoden:</p>
<pre><code class="language-cpp">void __fastcall TForm1::MouseUp(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
  Action4Execute(Sender);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::MouseDown(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
Action2Execute(Sender);
}
</code></pre>
<p>Die Warnung die ich gepostet hatte bleibt allerdings.</p>
<p>Gruß Mark</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396254</guid><dc:creator><![CDATA[heutmalhier]]></dc:creator><pubDate>Fri, 02 Nov 2007 09:17:35 GMT</pubDate></item><item><title><![CDATA[Reply to Button Release on Fri, 02 Nov 2007 09:24:38 GMT]]></title><description><![CDATA[<p>Die Warnung wirst du los, wenn du deine Funktion KeyUp umbenennst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396258</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 02 Nov 2007 09:24:38 GMT</pubDate></item></channel></rss>