<?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[Ausklappmenü]]></title><description><![CDATA[<p>Also ich habe vor, neben mein Fenster ein 2tes kleine Fenster ausklappen lasse, wenn ich auf einen Knopf drücke. Dies sollte sich aber mit verschieben lassen.<br />
Habe es bis jetzt immer so gemacht, dass ich einfach die Breite des Fensters vergrößert habe und dort meine Anzeigen reingebaut habe:</p>
<pre><code class="language-cpp">bool ausgeklapt=false;
int Ausklappbreite=150;

void __fastcall TForm1::Button1Click(TObject *Sender)
{
 Canvas-&gt;Pen-&gt;Width = 3;
 Canvas-&gt;Pen-&gt;Color = clRed;
 if (ausgeklapt == false)
 {
  Form1-&gt;Constraints-&gt;MaxWidth = Form1-&gt;Width + Ausklappbreite;
  Form1-&gt;Constraints-&gt;MinWidth = Form1-&gt;Width + Ausklappbreite;
  Canvas-&gt;MoveTo(ClientWidth-Ausklappbreite+3, 300);
  Canvas-&gt;LineTo(ClientWidth-Ausklappbreite+3, -1);
  Button1-&gt;Caption = &quot;&lt;&lt;&quot;;
  ausgeklapt = true;
 }
 else
 {
  Form1-&gt;Constraints-&gt;MaxWidth = Form1-&gt;Width - Ausklappbreite;
  Form1-&gt;Constraints-&gt;MinWidth = Form1-&gt;Width - Ausklappbreite;
  Button1-&gt;Caption = &quot;&gt;&gt;&quot;;
  ausgeklapt = false;
 }
}
</code></pre>
<p>Das ist aber bestimmt nicht die feine Englische Art. Hat jemand eine Idee wie man es besser machen könnte?</p>
<p>Stratege993</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/210607/ausklappmenü</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 19:56:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/210607.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Apr 2008 21:26:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ausklappmenü on Sat, 12 Apr 2008 21:26:56 GMT]]></title><description><![CDATA[<p>Also ich habe vor, neben mein Fenster ein 2tes kleine Fenster ausklappen lasse, wenn ich auf einen Knopf drücke. Dies sollte sich aber mit verschieben lassen.<br />
Habe es bis jetzt immer so gemacht, dass ich einfach die Breite des Fensters vergrößert habe und dort meine Anzeigen reingebaut habe:</p>
<pre><code class="language-cpp">bool ausgeklapt=false;
int Ausklappbreite=150;

void __fastcall TForm1::Button1Click(TObject *Sender)
{
 Canvas-&gt;Pen-&gt;Width = 3;
 Canvas-&gt;Pen-&gt;Color = clRed;
 if (ausgeklapt == false)
 {
  Form1-&gt;Constraints-&gt;MaxWidth = Form1-&gt;Width + Ausklappbreite;
  Form1-&gt;Constraints-&gt;MinWidth = Form1-&gt;Width + Ausklappbreite;
  Canvas-&gt;MoveTo(ClientWidth-Ausklappbreite+3, 300);
  Canvas-&gt;LineTo(ClientWidth-Ausklappbreite+3, -1);
  Button1-&gt;Caption = &quot;&lt;&lt;&quot;;
  ausgeklapt = true;
 }
 else
 {
  Form1-&gt;Constraints-&gt;MaxWidth = Form1-&gt;Width - Ausklappbreite;
  Form1-&gt;Constraints-&gt;MinWidth = Form1-&gt;Width - Ausklappbreite;
  Button1-&gt;Caption = &quot;&gt;&gt;&quot;;
  ausgeklapt = false;
 }
}
</code></pre>
<p>Das ist aber bestimmt nicht die feine Englische Art. Hat jemand eine Idee wie man es besser machen könnte?</p>
<p>Stratege993</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1491088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1491088</guid><dc:creator><![CDATA[Stratege993]]></dc:creator><pubDate>Sat, 12 Apr 2008 21:26:56 GMT</pubDate></item></channel></rss>