<?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[options-button]]></title><description><![CDATA[<p>Hallo,</p>
<p>mir wachsen schon graue Haare.<br />
Das ist eine Einsendeaufg. für's Fernstudium und wenn ich die einfach nicht hinbekomm, kann ich auch nicht weitermachen.<br />
Es soll zw. den 3 Sprachen (der label) umgeschalten werden und auch der command-button soll sich ändern.<br />
Es geht immer nur so halb.<br />
WER KANN HELFEN??????<br />
Viele Grüße von Renate</p>
<p>// Declarations added here will be included at the top of the .HPP file</p>
<pre><code class="language-cpp">class __Form1_declspec Form1 : public __Form1_Base
{

    public:  // add your public instance data here
    private: // add your private instance data here
            WBool _Set_Text(void);
            WInt _text_nr;
            WInt _setFont;
            WInt _DeuEng;
            WInt _DeuFra;
            WInt _um1;

    protected: // add your protected instance data here

};

// Code added here will be included at the top of the .CPP file
 WBool Form1::_Set_Text(void)
 {
  if (_text_nr == 0 &amp; _DeuEng == 0)
        _um1 = 0;
  if (_text_nr == 1 &amp; _DeuEng == 0)
        _um1 = 1;
  if (_text_nr == 0 &amp; _DeuEng == 1)
        _um1 = 2;
  if (_text_nr == 1 &amp; _DeuEng == 1)
        _um1 = 3;

  if (_text_nr == 0 &amp;&amp; _DeuFra == 1 &amp;&amp; _DeuEng == 0)
        _um1 = 4;

     if (_text_nr == 1 &amp;&amp; _DeuFra == 1 &amp;&amp; _DeuEng == 1)
        _um1 = 5;     

  switch (_um1)
    {
      case 0:
            label_text-&gt;SetText( &quot;Dies ist der erste Text&quot; );
            cb_1umschalt-&gt;SetText( &quot;Zweiten Text anzeigen&quot; );
      break;
       case 1:
            label_text-&gt;SetText( &quot;Dies ist der  zweite längere Text&quot; );
            cb_1umschalt-&gt;SetText( &quot;Ersten Text ausgeben&quot; );
       break;
       case 2:
            label_text-&gt;SetText( &quot;This is the first text&quot; );
            cb_1umschalt-&gt;SetText( &quot;Show the second text&quot; );
      break;
       case 3:
            label_text-&gt;SetText( &quot;This is the second longer text&quot; );
            cb_1umschalt-&gt;SetText( &quot;Show the first text&quot; );
      break;
        case 4:
        label_text-&gt;SetText( &quot;Ceci est le premier texte&quot; );
        cb_1umschalt-&gt;SetText( &quot;Indiquer le deuxieme texte&quot; );
      break;
      case 5:
        label_text-&gt;SetText( &quot;Ceci est le deuxieme plus long texte&quot; );
        cb_1umschalt-&gt;SetText( &quot;Indiquer le premier texte&quot; );
       break; 

    }
  return FALSE;     
 }
//  Include definitions for resources.
#include &quot;WRes.h&quot;

Form1::Form1()                          // Konstruktor
{
  _text_nr = 0;
  _setFont = 0;
  _DeuEng  = 0;
  _DeuFra  = 0;
}

Form1::~Form1()                         // Destruktor
{

}

WBool Form1::menu_1_Umschalten_Click(
    WObject *           source,
    WEventData *        event )
{
     if (_text_nr == 0)
        _text_nr = 1;
    else
        _text_nr = 0;
        _Set_Text();
 return FALSE;  
}

WBool Form1::menu_1_Beenden_Click(
    WObject *           source,
    WEventData *        event )
{
    WAppObject.Quit();
    return FALSE;
}

WBool Form1::cb_1umschalt_Click(
    WObject *           source,
    WEventData *        event )
{

    if (_text_nr == 1 &amp;&amp; _DeuFra == 0 &amp;&amp; _DeuEng == 0)
        _text_nr = 1;
    else
        _text_nr = 0; 
        _Set_Text();
    if  (_text_nr == 0 &amp;&amp; _DeuFra == 1 &amp;&amp; _DeuEng == 0)
        _DeuFra = 1;
    else
        _DeuFra = 0;
        _Set_Text();

    if (_text_nr == 0 &amp;&amp; _DeuFra ==0 &amp;&amp; _DeuEng == 1)
        _DeuEng = 1;
    else
        _DeuEng = 0;
        _Set_Text();
    return FALSE;
}

WBool Form1::checkbox_1_Click(
    WObject *           source,
    WEventData *        event )
{
    if (_setFont == 0)
    {
       label_text-&gt;SetFont( WFont( &quot;20.Arial.Bold&quot; ) );
       _setFont = 1;
    }
    else
    {
        label_text-&gt;SetFont( WFont( &quot;8.Arial.Bold&quot; ) );
       _setFont = 0;   
    }

    return FALSE;
}

WBool Form1::optb_deutsch_Click(
    WObject *           source,
    WEventData *        event )
{
    _DeuEng = 0;
    _Set_Text();
    return FALSE;
}

WBool Form1::optb_englisch_Click(
    WObject *           source,
    WEventData *        event )
{
    _DeuEng = 1;
    _Set_Text();
 return FALSE;
}

WBool Form1::optb_franzoesisch_Click(
 WObject *     source,
 WEventData *  event )
{

     _DeuFra = 1;
     _Set_Text();
    return FALSE;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/145060/options-button</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 20:30:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/145060.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Apr 2006 14:27:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to options-button on Mon, 24 Apr 2006 14:27:33 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>mir wachsen schon graue Haare.<br />
Das ist eine Einsendeaufg. für's Fernstudium und wenn ich die einfach nicht hinbekomm, kann ich auch nicht weitermachen.<br />
Es soll zw. den 3 Sprachen (der label) umgeschalten werden und auch der command-button soll sich ändern.<br />
Es geht immer nur so halb.<br />
WER KANN HELFEN??????<br />
Viele Grüße von Renate</p>
<p>// Declarations added here will be included at the top of the .HPP file</p>
<pre><code class="language-cpp">class __Form1_declspec Form1 : public __Form1_Base
{

    public:  // add your public instance data here
    private: // add your private instance data here
            WBool _Set_Text(void);
            WInt _text_nr;
            WInt _setFont;
            WInt _DeuEng;
            WInt _DeuFra;
            WInt _um1;

    protected: // add your protected instance data here

};

// Code added here will be included at the top of the .CPP file
 WBool Form1::_Set_Text(void)
 {
  if (_text_nr == 0 &amp; _DeuEng == 0)
        _um1 = 0;
  if (_text_nr == 1 &amp; _DeuEng == 0)
        _um1 = 1;
  if (_text_nr == 0 &amp; _DeuEng == 1)
        _um1 = 2;
  if (_text_nr == 1 &amp; _DeuEng == 1)
        _um1 = 3;

  if (_text_nr == 0 &amp;&amp; _DeuFra == 1 &amp;&amp; _DeuEng == 0)
        _um1 = 4;

     if (_text_nr == 1 &amp;&amp; _DeuFra == 1 &amp;&amp; _DeuEng == 1)
        _um1 = 5;     

  switch (_um1)
    {
      case 0:
            label_text-&gt;SetText( &quot;Dies ist der erste Text&quot; );
            cb_1umschalt-&gt;SetText( &quot;Zweiten Text anzeigen&quot; );
      break;
       case 1:
            label_text-&gt;SetText( &quot;Dies ist der  zweite längere Text&quot; );
            cb_1umschalt-&gt;SetText( &quot;Ersten Text ausgeben&quot; );
       break;
       case 2:
            label_text-&gt;SetText( &quot;This is the first text&quot; );
            cb_1umschalt-&gt;SetText( &quot;Show the second text&quot; );
      break;
       case 3:
            label_text-&gt;SetText( &quot;This is the second longer text&quot; );
            cb_1umschalt-&gt;SetText( &quot;Show the first text&quot; );
      break;
        case 4:
        label_text-&gt;SetText( &quot;Ceci est le premier texte&quot; );
        cb_1umschalt-&gt;SetText( &quot;Indiquer le deuxieme texte&quot; );
      break;
      case 5:
        label_text-&gt;SetText( &quot;Ceci est le deuxieme plus long texte&quot; );
        cb_1umschalt-&gt;SetText( &quot;Indiquer le premier texte&quot; );
       break; 

    }
  return FALSE;     
 }
//  Include definitions for resources.
#include &quot;WRes.h&quot;

Form1::Form1()                          // Konstruktor
{
  _text_nr = 0;
  _setFont = 0;
  _DeuEng  = 0;
  _DeuFra  = 0;
}

Form1::~Form1()                         // Destruktor
{

}

WBool Form1::menu_1_Umschalten_Click(
    WObject *           source,
    WEventData *        event )
{
     if (_text_nr == 0)
        _text_nr = 1;
    else
        _text_nr = 0;
        _Set_Text();
 return FALSE;  
}

WBool Form1::menu_1_Beenden_Click(
    WObject *           source,
    WEventData *        event )
{
    WAppObject.Quit();
    return FALSE;
}

WBool Form1::cb_1umschalt_Click(
    WObject *           source,
    WEventData *        event )
{

    if (_text_nr == 1 &amp;&amp; _DeuFra == 0 &amp;&amp; _DeuEng == 0)
        _text_nr = 1;
    else
        _text_nr = 0; 
        _Set_Text();
    if  (_text_nr == 0 &amp;&amp; _DeuFra == 1 &amp;&amp; _DeuEng == 0)
        _DeuFra = 1;
    else
        _DeuFra = 0;
        _Set_Text();

    if (_text_nr == 0 &amp;&amp; _DeuFra ==0 &amp;&amp; _DeuEng == 1)
        _DeuEng = 1;
    else
        _DeuEng = 0;
        _Set_Text();
    return FALSE;
}

WBool Form1::checkbox_1_Click(
    WObject *           source,
    WEventData *        event )
{
    if (_setFont == 0)
    {
       label_text-&gt;SetFont( WFont( &quot;20.Arial.Bold&quot; ) );
       _setFont = 1;
    }
    else
    {
        label_text-&gt;SetFont( WFont( &quot;8.Arial.Bold&quot; ) );
       _setFont = 0;   
    }

    return FALSE;
}

WBool Form1::optb_deutsch_Click(
    WObject *           source,
    WEventData *        event )
{
    _DeuEng = 0;
    _Set_Text();
    return FALSE;
}

WBool Form1::optb_englisch_Click(
    WObject *           source,
    WEventData *        event )
{
    _DeuEng = 1;
    _Set_Text();
 return FALSE;
}

WBool Form1::optb_franzoesisch_Click(
 WObject *     source,
 WEventData *  event )
{

     _DeuFra = 1;
     _Set_Text();
    return FALSE;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1044049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1044049</guid><dc:creator><![CDATA[Renate]]></dc:creator><pubDate>Mon, 24 Apr 2006 14:27:33 GMT</pubDate></item><item><title><![CDATA[Reply to options-button on Mon, 24 Apr 2006 14:32:04 GMT]]></title><description><![CDATA[<p>Wo ist der Unterschied zu <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-144402-and-highlight-is-.html" rel="nofollow">diesem Thread</a>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1044052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1044052</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 24 Apr 2006 14:32:04 GMT</pubDate></item><item><title><![CDATA[Reply to options-button on Mon, 24 Apr 2006 14:33:44 GMT]]></title><description><![CDATA[<p>Vor ein paar tegaen war hir mal ein thread da gings drum wie man mehrsprachig programmiert.<br />
Soweit ich das mitbekommen hab sollte man aus net Datei auslesen lassen und darin steht der text ind er jeweiligen Sprache.</p>
<p>Solltest du dir vielleicht auch überlegen falls das programm noch größer wird.</p>
<p>Ansonsten kannst du uns auch gerne mitteilen was dein fehler ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1044057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1044057</guid><dc:creator><![CDATA[Mario Sandler]]></dc:creator><pubDate>Mon, 24 Apr 2006 14:33:44 GMT</pubDate></item></channel></rss>