<?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[TabSheet nur bedingt anzeigen]]></title><description><![CDATA[<p>Ich habe ein PageControl mit mehreren TabSheets, zwischen denen man ganz einfach wechseln kann. Im OnShow-Ereignis eines TabSheets wird als ertes geprüft, ob bestimmte Bedingungen erfüllt werden, und wenn nicht, dann soll er dieses TabSheet gar nicht erst anzeigen, sondern beim vorherigen TabSheet bleiben!<br />
Aber wie mach ich das, dass er dann wieder zum vorherigen TabSheet zurück geht??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148285/tabsheet-nur-bedingt-anzeigen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 06 Aug 2026 15:51:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148285.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 May 2006 08:36:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 08:36:39 GMT]]></title><description><![CDATA[<p>Ich habe ein PageControl mit mehreren TabSheets, zwischen denen man ganz einfach wechseln kann. Im OnShow-Ereignis eines TabSheets wird als ertes geprüft, ob bestimmte Bedingungen erfüllt werden, und wenn nicht, dann soll er dieses TabSheet gar nicht erst anzeigen, sondern beim vorherigen TabSheet bleiben!<br />
Aber wie mach ich das, dass er dann wieder zum vorherigen TabSheet zurück geht??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064725</guid><dc:creator><![CDATA[apo]]></dc:creator><pubDate>Thu, 25 May 2006 08:36:39 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 08:42:07 GMT]]></title><description><![CDATA[<p>OnChanging nutzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064726</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Thu, 25 May 2006 08:42:07 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 08:50:50 GMT]]></title><description><![CDATA[<p>Erstmal Danke, aber wie kann ich nun feststellen, dass eben genau dieses TabSheet angewählt wurde?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064731</guid><dc:creator><![CDATA[apo]]></dc:creator><pubDate>Thu, 25 May 2006 08:50:50 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 09:26:37 GMT]]></title><description><![CDATA[<p>Blende doch einfach das TabSheet welches nicht mehr anwählbar sein soll aus. (Das prüfst du ja im OnShow !)</p>
<pre><code class="language-cpp">TabSheet2-&gt;TabVisible = false;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1064736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064736</guid><dc:creator><![CDATA[tabber]]></dc:creator><pubDate>Thu, 25 May 2006 09:26:37 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 09:28:07 GMT]]></title><description><![CDATA[<p>bzw Zugriff über das PageControl</p>
<pre><code class="language-cpp">PageControl1-&gt;Pages [1]-&gt;TabVisible = false;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1064739</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064739</guid><dc:creator><![CDATA[tabber]]></dc:creator><pubDate>Thu, 25 May 2006 09:28:07 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 09:32:25 GMT]]></title><description><![CDATA[<p>void __fastcall TMain::PagerChanging(TObject *Sender, bool &amp;AllowChange)<br />
{<br />
if(Pager-&gt;ActivePage==xxxxxx)<br />
{<br />
AllowChange=true;<br />
}<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064741</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064741</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Thu, 25 May 2006 09:32:25 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 09:33:24 GMT]]></title><description><![CDATA[<p>@ tabber</p>
<p>Das hilft mir nicht weiter!</p>
<p>Ich muss im onchanging-ereignis feststellen, welches tab denn nun angewählt wurde, aber ich weiss nicht wie!??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064743</guid><dc:creator><![CDATA[apo]]></dc:creator><pubDate>Thu, 25 May 2006 09:33:24 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 09:40:05 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TF_CarSetup::PageControl1Changing(TObject *Sender,
      bool &amp;AllowChange)
{
        if (PageControl1-&gt;ActivePage == TS_Review)
        {
                if (!CheckData())
                {
                        AllowChange = false;
                }
        }
}
</code></pre>
<p>Das geht auch nicht, weil wenn er beim onchanging NOCH nicht zu TS_Review gewechselt hat!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064747</guid><dc:creator><![CDATA[apo]]></dc:creator><pubDate>Thu, 25 May 2006 09:40:05 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 09:48:14 GMT]]></title><description><![CDATA[<p>Dann nimm OnChange und setze ggf. zurück mit</p>
<p>ActivePage==</p>
<p>Du kannst dir ja auch im OnChanging in einer globalen Variable merken woher er kommt und im Onchange prüfen und zurücksetzen.</p>
<p>Also</p>
<p>OnChanging<br />
globales_ts=ActivePage;<br />
AllowChange=true;</p>
<p>OnChange<br />
if(Bedingung nicht erfüllt)<br />
ActivePage=globales_ts;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064753</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Thu, 25 May 2006 09:48:14 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 09:54:51 GMT]]></title><description><![CDATA[<p>oh, globale variable hört sich aber ganz mies an... <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>
<p>vielleicht hat da ja jemand noch ne bessere idee??!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064757</guid><dc:creator><![CDATA[apo]]></dc:creator><pubDate>Thu, 25 May 2006 09:54:51 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 10:02:43 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>nimm statt der globalen Variable einfach eine Member-Variable des Forms.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064763</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 25 May 2006 10:02:43 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 10:10:20 GMT]]></title><description><![CDATA[<p>Kann ich in dem OnChanging-Ereignis nicht überprüfen, von wo es ausgelöst wurde - nämlich vom Click auf die TS_Review-Schaltfläche??<br />
Ich habe das mal mit dynamic_cast probiert, leider hab ich das nich hinbekommen, er mag den sender nicht in ein tabsheet wandeln...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064766</guid><dc:creator><![CDATA[apo]]></dc:creator><pubDate>Thu, 25 May 2006 10:10:20 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 10:19:29 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>der Sender ist und bleibt immer noch das PageControl.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064774</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 25 May 2006 10:19:29 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 10:24:03 GMT]]></title><description><![CDATA[<p>und da kann ich nicht feststellen, worauf geklickt wurde?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064777</guid><dc:creator><![CDATA[apo]]></dc:creator><pubDate>Thu, 25 May 2006 10:24:03 GMT</pubDate></item><item><title><![CDATA[Reply to TabSheet nur bedingt anzeigen on Thu, 25 May 2006 10:28:35 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>dafür ist der Event nicht zuständig.</p>
<p>BCB-Hilfe schrieb:</p>
<blockquote>
<p>Mit einer Ereignisbehandlungsroutine für OnChanging können Sie verhindern, daß ein Benutzer eine Registerkarte verläßt, bevor bestimmte Voraussetzungen erfüllt sind.</p>
</blockquote>
<p>In diesem Event geht es nur um die zu verlassende Page.</p>
<p>Wenn du die Anwahl einer Page verhindern willst, must du wie bereits schon gesagt <em>TTabSheet::TabVisible</em> zur Laufzeit setzen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064781</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064781</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 25 May 2006 10:28:35 GMT</pubDate></item></channel></rss>