<?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[[Fehler] Aus einem sichtbaren Fenster kann kein modales gemacht werden *Hilfe*]]></title><description><![CDATA[<p>Hi!<br />
Ich bekomm zurzeit diese Fehlermeldung, und verzweifle regelrecht daran.<br />
Er kommt wenn ich ein zweites mal auf Hinzufügen klcike (Symptom.cpp -&gt; TForm1::SystemHinzufuegenClick)<br />
Seht ih den Fehler?</p>
<p>Symptom.cpp</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Symptom.h&quot;
#include &quot;Hinzufuegen.h&quot;
#include &quot;Inhaltsstoffe.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
int n;
AnsiString *inhaltsstoffe;
int m_ArrayInhaltsstoffeLength;
bool ianzeigen;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
  Liste-&gt;Cells[0][0] = &quot;Essen&quot;;
  Liste-&gt;Cells[1][0] = &quot;Symptome&quot;;
  Liste-&gt;Cells[2][0] = &quot;Datum&quot;;
  Liste-&gt;ColWidths[0] = 190;
  Liste-&gt;ColWidths[1] = 210;
  Liste-&gt;ColWidths[2] = 112;

  n = 0;
  inhaltsstoffe = new AnsiString[1];
  m_ArrayInhaltsstoffeLength = 1;

  ianzeigen = false;

  Form3-&gt;setMenuItem(OptionenInhaltsstoffe, &amp;ianzeigen);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::DateiBeendenClick(TObject *Sender)
{
  Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::SystemHinzufuegenClick(TObject *Sender)
{
  Form2-&gt;updateDatum();
  Form2-&gt;Caption = &quot;Hinzufügen&quot;;
  Form2-&gt;ShowModal();

  bool abbruch = Form2-&gt;getAbbruch();

  if(abbruch)
  {
    Form2-&gt;Essen-&gt;Text = &quot;&quot;;
    Form2-&gt;Symptome-&gt;Text = &quot;&quot;;
    Form2-&gt;Datum-&gt;Text = &quot;&quot;;
    Form2-&gt;Inhaltsstoffe-&gt;Text = &quot;&quot;;
    Form2-&gt;Enabled = false;
    Form2-&gt;AnAus-&gt;Checked = false;
    return;
  }

  Liste-&gt;Enabled = true;

  AnsiString essen = Form2-&gt;Essen-&gt;Text;
  AnsiString symptome = Form2-&gt;Symptome-&gt;Text;
  AnsiString datum = Form2-&gt;Datum-&gt;Text;

  if(n == m_ArrayInhaltsstoffeLength)
  {
    extendInhaltsstoffeArray();
  }
  inhaltsstoffe[n] = Form2-&gt;Inhaltsstoffe-&gt;Text;

  if(n == 0)
  {
    Liste-&gt;Cells[0][1] = essen;
    Liste-&gt;Cells[1][1] = symptome;
    Liste-&gt;Cells[2][1] = datum;
  }else{
    Liste-&gt;RowCount = n+2;
    Liste-&gt;Cells[0][n+1] = essen;
    Liste-&gt;Cells[1][n+1] = symptome;
    Liste-&gt;Cells[2][n+1] = datum;
  }

  n ++;

  Form2-&gt;Essen-&gt;Text = &quot;&quot;;
  Form2-&gt;Symptome-&gt;Text = &quot;&quot;;
  Form2-&gt;Datum-&gt;Text = &quot;&quot;;
  Form2-&gt;Inhaltsstoffe-&gt;Text = &quot;&quot;;
  Form2-&gt;Enabled = false;
  Form2-&gt;AnAus-&gt;Checked = false;
}
//---------------------------------------------------------------------------

void TForm1::extendInhaltsstoffeArray()
{
  if(n == 0)
  {
    return;
  }

  AnsiString *dummy = new AnsiString[m_ArrayInhaltsstoffeLength+1];

  for(int i = 0; i &lt; m_ArrayInhaltsstoffeLength; i ++)
  {
    dummy[i] = inhaltsstoffe[i];
  }

  inhaltsstoffe = new AnsiString[m_ArrayInhaltsstoffeLength+1];

  for(int i = 0; i &lt; m_ArrayInhaltsstoffeLength; i ++)
  {
    inhaltsstoffe[i] = dummy[i];
  }

  m_ArrayInhaltsstoffeLength ++;
}
//---------------------------------------------------------------------------

void TForm1::reduceInhaltsstoffeArray(int stelle)
{
  if(m_ArrayInhaltsstoffeLength == 1)
  {
    return;
  }

  AnsiString *dummy = new AnsiString[m_ArrayInhaltsstoffeLength-1];

  for(int i = 0; i &lt; stelle; i ++)
  {
    dummy[i] = inhaltsstoffe[i];
  }
  for(int i = stelle; i &lt; m_ArrayInhaltsstoffeLength-1; i ++)
  {
    dummy[i] = inhaltsstoffe[i+1];
  }

  inhaltsstoffe = new AnsiString[m_ArrayInhaltsstoffeLength-1];

  for(int i = 0; i &lt; m_ArrayInhaltsstoffeLength-1; i ++)
  {
    inhaltsstoffe[i] = dummy[i];
  }

  m_ArrayInhaltsstoffeLength --;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::OptionenInhaltsstoffeClick(TObject *Sender)
{
  OptionenInhaltsstoffe-&gt;Checked = !OptionenInhaltsstoffe-&gt;Checked;
  ianzeigen = OptionenInhaltsstoffe-&gt;Checked;
  if(!ianzeigen)
  {
    Form3-&gt;Close();
  }else{
    Form3-&gt;Show();
  }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ListeClick(TObject *Sender)
{
  if(ianzeigen)
  {
    int auswahl = Liste-&gt;Row;
    auswahl --;
    Form3-&gt;Inhaltsstoffe-&gt;Text = inhaltsstoffe[auswahl];
  }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::SystemAendernClick(TObject *Sender)
{
  int auswahl = Liste-&gt;Row;
  auswahl --;

  Form2-&gt;Caption = &quot;Ändern&quot;;

  Form2-&gt;Essen-&gt;Text = Liste-&gt;Cells[0][auswahl+1];
  Form2-&gt;Symptome-&gt;Text = Liste-&gt;Cells[1][auswahl+1];
  Form2-&gt;Inhaltsstoffe-&gt;Text = inhaltsstoffe[auswahl];
  Form2-&gt;Datum-&gt;Text = Liste-&gt;Cells[2][auswahl+1];

  Form2-&gt;ShowModal();

  bool abbruch = Form2-&gt;getAbbruch();

  if(abbruch)
  {
    Form2-&gt;Essen-&gt;Text = &quot;&quot;;
    Form2-&gt;Symptome-&gt;Text = &quot;&quot;;
    Form2-&gt;Datum-&gt;Text = &quot;&quot;;
    Form2-&gt;Inhaltsstoffe-&gt;Text = &quot;&quot;;
    Form2-&gt;Enabled = false;
    Form2-&gt;AnAus-&gt;Checked = false;
    return;
  }

  Liste-&gt;Cells[0][auswahl+1] = Form2-&gt;Essen-&gt;Text;
  Liste-&gt;Cells[1][auswahl+1] = Form2-&gt;Symptome-&gt;Text;
  inhaltsstoffe[auswahl] = Form2-&gt;Inhaltsstoffe-&gt;Text;
  Liste-&gt;Cells[2][auswahl+1] = Form2-&gt;Datum-&gt;Text;

  Form2-&gt;Essen-&gt;Text = &quot;&quot;;
  Form2-&gt;Symptome-&gt;Text = &quot;&quot;;
  Form2-&gt;Datum-&gt;Text = &quot;&quot;;
  Form2-&gt;Inhaltsstoffe-&gt;Text = &quot;&quot;;
  Form2-&gt;Enabled = false;
  Form2-&gt;AnAus-&gt;Checked = false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::SystemLoeschenClick(TObject *Sender)
{
  int auswahl = Liste-&gt;Row;
  int anzahl = Liste-&gt;RowCount;

  if(Liste-&gt;RowCount == 2)
  {
    Liste-&gt;Cells[0][1] = &quot;&quot;;
    Liste-&gt;Cells[1][1] = &quot;&quot;;
    Liste-&gt;Cells[2][1] = &quot;&quot;;
    Liste-&gt;Enabled = true;
  }else{

    for(int i = auswahl; i &lt;= Liste-&gt;RowCount; i ++)
    {
      Liste-&gt;Cells[0][i] = Liste-&gt;Cells[0][i+1];
      Liste-&gt;Cells[1][i] = Liste-&gt;Cells[1][i+1];
      Liste-&gt;Cells[2][i] = Liste-&gt;Cells[2][i+1];
      Liste-&gt;RowCount = anzahl - 1;
    }

  }

  reduceInhaltsstoffeArray(auswahl-1);
  n --;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Hinzufügen.cpp</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Hinzufuegen.h&quot;
#include &quot;time.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm2 *Form2;
bool abbruch;
//---------------------------------------------------------------------------
__fastcall TForm2::TForm2(TComponent* Owner)
        : TForm(Owner)
{
  abbruch = true;

  TDateTime DateTime = Time();
  AnsiString zeit = TimeToStr(DateTime.CurrentTime());
  AnsiString datum = DateToStr(DateTime.CurrentDate());

  Datum-&gt;Text = datum + &quot;, &quot; + zeit;
}
//---------------------------------------------------------------------------
void __fastcall TForm2::AbbrechenClick(TObject *Sender)
{
  abbruch = true;
  Close();        
}
//---------------------------------------------------------------------------
void __fastcall TForm2::SpeichernClick(TObject *Sender)
{
  abbruch = false;
  Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm2::AnAusClick(TObject *Sender)
{
  bool checked = AnAus-&gt;Checked;
  if(checked)
  {
    Datum-&gt;Enabled = true;
  }else{
    Datum-&gt;Enabled = false;
  }
}
//---------------------------------------------------------------------------

void TForm2::updateDatum()
{
  abbruch = true;

  TDateTime DateTime = Time();
  AnsiString zeit = TimeToStr(DateTime.CurrentTime());
  AnsiString datum = DateToStr(DateTime.CurrentDate());

  Datum-&gt;Text = datum + &quot;, &quot; + zeit;
}
//---------------------------------------------------------------------------

bool TForm2::getAbbruch()
{
  return abbruch;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Inhaltsstoffe.cpp</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Inhaltsstoffe.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm3 *Form3;
TMenuItem *tmi;
bool ia;
//---------------------------------------------------------------------------
__fastcall TForm3::TForm3(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void TForm3::setMenuItem(TMenuItem *t, bool *b)
{
  tmi = t;
}
void __fastcall TForm3::OnClose(TObject *Sender, TCloseAction &amp;Action)
{
  tmi-&gt;Checked = false;
  ia = false;
}
//---------------------------------------------------------------------------
</code></pre>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/184265/fehler-aus-einem-sichtbaren-fenster-kann-kein-modales-gemacht-werden-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 05:01:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184265.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Jun 2007 17:57:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Fehler] Aus einem sichtbaren Fenster kann kein modales gemacht werden *Hilfe* on Wed, 13 Jun 2007 18:05:46 GMT]]></title><description><![CDATA[<p>Hi!<br />
Ich bekomm zurzeit diese Fehlermeldung, und verzweifle regelrecht daran.<br />
Er kommt wenn ich ein zweites mal auf Hinzufügen klcike (Symptom.cpp -&gt; TForm1::SystemHinzufuegenClick)<br />
Seht ih den Fehler?</p>
<p>Symptom.cpp</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Symptom.h&quot;
#include &quot;Hinzufuegen.h&quot;
#include &quot;Inhaltsstoffe.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
int n;
AnsiString *inhaltsstoffe;
int m_ArrayInhaltsstoffeLength;
bool ianzeigen;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
  Liste-&gt;Cells[0][0] = &quot;Essen&quot;;
  Liste-&gt;Cells[1][0] = &quot;Symptome&quot;;
  Liste-&gt;Cells[2][0] = &quot;Datum&quot;;
  Liste-&gt;ColWidths[0] = 190;
  Liste-&gt;ColWidths[1] = 210;
  Liste-&gt;ColWidths[2] = 112;

  n = 0;
  inhaltsstoffe = new AnsiString[1];
  m_ArrayInhaltsstoffeLength = 1;

  ianzeigen = false;

  Form3-&gt;setMenuItem(OptionenInhaltsstoffe, &amp;ianzeigen);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::DateiBeendenClick(TObject *Sender)
{
  Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::SystemHinzufuegenClick(TObject *Sender)
{
  Form2-&gt;updateDatum();
  Form2-&gt;Caption = &quot;Hinzufügen&quot;;
  Form2-&gt;ShowModal();

  bool abbruch = Form2-&gt;getAbbruch();

  if(abbruch)
  {
    Form2-&gt;Essen-&gt;Text = &quot;&quot;;
    Form2-&gt;Symptome-&gt;Text = &quot;&quot;;
    Form2-&gt;Datum-&gt;Text = &quot;&quot;;
    Form2-&gt;Inhaltsstoffe-&gt;Text = &quot;&quot;;
    Form2-&gt;Enabled = false;
    Form2-&gt;AnAus-&gt;Checked = false;
    return;
  }

  Liste-&gt;Enabled = true;

  AnsiString essen = Form2-&gt;Essen-&gt;Text;
  AnsiString symptome = Form2-&gt;Symptome-&gt;Text;
  AnsiString datum = Form2-&gt;Datum-&gt;Text;

  if(n == m_ArrayInhaltsstoffeLength)
  {
    extendInhaltsstoffeArray();
  }
  inhaltsstoffe[n] = Form2-&gt;Inhaltsstoffe-&gt;Text;

  if(n == 0)
  {
    Liste-&gt;Cells[0][1] = essen;
    Liste-&gt;Cells[1][1] = symptome;
    Liste-&gt;Cells[2][1] = datum;
  }else{
    Liste-&gt;RowCount = n+2;
    Liste-&gt;Cells[0][n+1] = essen;
    Liste-&gt;Cells[1][n+1] = symptome;
    Liste-&gt;Cells[2][n+1] = datum;
  }

  n ++;

  Form2-&gt;Essen-&gt;Text = &quot;&quot;;
  Form2-&gt;Symptome-&gt;Text = &quot;&quot;;
  Form2-&gt;Datum-&gt;Text = &quot;&quot;;
  Form2-&gt;Inhaltsstoffe-&gt;Text = &quot;&quot;;
  Form2-&gt;Enabled = false;
  Form2-&gt;AnAus-&gt;Checked = false;
}
//---------------------------------------------------------------------------

void TForm1::extendInhaltsstoffeArray()
{
  if(n == 0)
  {
    return;
  }

  AnsiString *dummy = new AnsiString[m_ArrayInhaltsstoffeLength+1];

  for(int i = 0; i &lt; m_ArrayInhaltsstoffeLength; i ++)
  {
    dummy[i] = inhaltsstoffe[i];
  }

  inhaltsstoffe = new AnsiString[m_ArrayInhaltsstoffeLength+1];

  for(int i = 0; i &lt; m_ArrayInhaltsstoffeLength; i ++)
  {
    inhaltsstoffe[i] = dummy[i];
  }

  m_ArrayInhaltsstoffeLength ++;
}
//---------------------------------------------------------------------------

void TForm1::reduceInhaltsstoffeArray(int stelle)
{
  if(m_ArrayInhaltsstoffeLength == 1)
  {
    return;
  }

  AnsiString *dummy = new AnsiString[m_ArrayInhaltsstoffeLength-1];

  for(int i = 0; i &lt; stelle; i ++)
  {
    dummy[i] = inhaltsstoffe[i];
  }
  for(int i = stelle; i &lt; m_ArrayInhaltsstoffeLength-1; i ++)
  {
    dummy[i] = inhaltsstoffe[i+1];
  }

  inhaltsstoffe = new AnsiString[m_ArrayInhaltsstoffeLength-1];

  for(int i = 0; i &lt; m_ArrayInhaltsstoffeLength-1; i ++)
  {
    inhaltsstoffe[i] = dummy[i];
  }

  m_ArrayInhaltsstoffeLength --;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::OptionenInhaltsstoffeClick(TObject *Sender)
{
  OptionenInhaltsstoffe-&gt;Checked = !OptionenInhaltsstoffe-&gt;Checked;
  ianzeigen = OptionenInhaltsstoffe-&gt;Checked;
  if(!ianzeigen)
  {
    Form3-&gt;Close();
  }else{
    Form3-&gt;Show();
  }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ListeClick(TObject *Sender)
{
  if(ianzeigen)
  {
    int auswahl = Liste-&gt;Row;
    auswahl --;
    Form3-&gt;Inhaltsstoffe-&gt;Text = inhaltsstoffe[auswahl];
  }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::SystemAendernClick(TObject *Sender)
{
  int auswahl = Liste-&gt;Row;
  auswahl --;

  Form2-&gt;Caption = &quot;Ändern&quot;;

  Form2-&gt;Essen-&gt;Text = Liste-&gt;Cells[0][auswahl+1];
  Form2-&gt;Symptome-&gt;Text = Liste-&gt;Cells[1][auswahl+1];
  Form2-&gt;Inhaltsstoffe-&gt;Text = inhaltsstoffe[auswahl];
  Form2-&gt;Datum-&gt;Text = Liste-&gt;Cells[2][auswahl+1];

  Form2-&gt;ShowModal();

  bool abbruch = Form2-&gt;getAbbruch();

  if(abbruch)
  {
    Form2-&gt;Essen-&gt;Text = &quot;&quot;;
    Form2-&gt;Symptome-&gt;Text = &quot;&quot;;
    Form2-&gt;Datum-&gt;Text = &quot;&quot;;
    Form2-&gt;Inhaltsstoffe-&gt;Text = &quot;&quot;;
    Form2-&gt;Enabled = false;
    Form2-&gt;AnAus-&gt;Checked = false;
    return;
  }

  Liste-&gt;Cells[0][auswahl+1] = Form2-&gt;Essen-&gt;Text;
  Liste-&gt;Cells[1][auswahl+1] = Form2-&gt;Symptome-&gt;Text;
  inhaltsstoffe[auswahl] = Form2-&gt;Inhaltsstoffe-&gt;Text;
  Liste-&gt;Cells[2][auswahl+1] = Form2-&gt;Datum-&gt;Text;

  Form2-&gt;Essen-&gt;Text = &quot;&quot;;
  Form2-&gt;Symptome-&gt;Text = &quot;&quot;;
  Form2-&gt;Datum-&gt;Text = &quot;&quot;;
  Form2-&gt;Inhaltsstoffe-&gt;Text = &quot;&quot;;
  Form2-&gt;Enabled = false;
  Form2-&gt;AnAus-&gt;Checked = false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::SystemLoeschenClick(TObject *Sender)
{
  int auswahl = Liste-&gt;Row;
  int anzahl = Liste-&gt;RowCount;

  if(Liste-&gt;RowCount == 2)
  {
    Liste-&gt;Cells[0][1] = &quot;&quot;;
    Liste-&gt;Cells[1][1] = &quot;&quot;;
    Liste-&gt;Cells[2][1] = &quot;&quot;;
    Liste-&gt;Enabled = true;
  }else{

    for(int i = auswahl; i &lt;= Liste-&gt;RowCount; i ++)
    {
      Liste-&gt;Cells[0][i] = Liste-&gt;Cells[0][i+1];
      Liste-&gt;Cells[1][i] = Liste-&gt;Cells[1][i+1];
      Liste-&gt;Cells[2][i] = Liste-&gt;Cells[2][i+1];
      Liste-&gt;RowCount = anzahl - 1;
    }

  }

  reduceInhaltsstoffeArray(auswahl-1);
  n --;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Hinzufügen.cpp</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Hinzufuegen.h&quot;
#include &quot;time.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm2 *Form2;
bool abbruch;
//---------------------------------------------------------------------------
__fastcall TForm2::TForm2(TComponent* Owner)
        : TForm(Owner)
{
  abbruch = true;

  TDateTime DateTime = Time();
  AnsiString zeit = TimeToStr(DateTime.CurrentTime());
  AnsiString datum = DateToStr(DateTime.CurrentDate());

  Datum-&gt;Text = datum + &quot;, &quot; + zeit;
}
//---------------------------------------------------------------------------
void __fastcall TForm2::AbbrechenClick(TObject *Sender)
{
  abbruch = true;
  Close();        
}
//---------------------------------------------------------------------------
void __fastcall TForm2::SpeichernClick(TObject *Sender)
{
  abbruch = false;
  Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm2::AnAusClick(TObject *Sender)
{
  bool checked = AnAus-&gt;Checked;
  if(checked)
  {
    Datum-&gt;Enabled = true;
  }else{
    Datum-&gt;Enabled = false;
  }
}
//---------------------------------------------------------------------------

void TForm2::updateDatum()
{
  abbruch = true;

  TDateTime DateTime = Time();
  AnsiString zeit = TimeToStr(DateTime.CurrentTime());
  AnsiString datum = DateToStr(DateTime.CurrentDate());

  Datum-&gt;Text = datum + &quot;, &quot; + zeit;
}
//---------------------------------------------------------------------------

bool TForm2::getAbbruch()
{
  return abbruch;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Inhaltsstoffe.cpp</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Inhaltsstoffe.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm3 *Form3;
TMenuItem *tmi;
bool ia;
//---------------------------------------------------------------------------
__fastcall TForm3::TForm3(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void TForm3::setMenuItem(TMenuItem *t, bool *b)
{
  tmi = t;
}
void __fastcall TForm3::OnClose(TObject *Sender, TCloseAction &amp;Action)
{
  tmi-&gt;Checked = false;
  ia = false;
}
//---------------------------------------------------------------------------
</code></pre>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1305077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1305077</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Wed, 13 Jun 2007 18:05:46 GMT</pubDate></item><item><title><![CDATA[Reply to [Fehler] Aus einem sichtbaren Fenster kann kein modales gemacht werden *Hilfe* on Wed, 13 Jun 2007 18:11:57 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Dieser Fehler kommt wenn ein Fenster bereits angezeigt wird (durch Show, Visible ist true) und ohne das dieses Fenster geschlossen wird für dieses Form ShowModal aufgerufen wird. Ich hab beim Überfliegen deines Codes keine solche Stelle finden können, aber vermutlich ergibt sich der Fehler in zusammenhang mit dem Code aus den anderen Forms. Benutzt den Debuger um den Programmablauf bei dir zu verfolgen und den Status der Forms zu prüfen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1305087</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1305087</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 13 Jun 2007 18:11:57 GMT</pubDate></item><item><title><![CDATA[Reply to [Fehler] Aus einem sichtbaren Fenster kann kein modales gemacht werden *Hilfe* on Wed, 13 Jun 2007 19:37:12 GMT]]></title><description><![CDATA[<p>Hab den Fehler gefunden.</p>
<p>Habe was vergessen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>-&gt; Form2-&gt;Enabled = false;</p>
<p>sollte Form2-&gt;Datum-&gt;Enabled = false;</p>
<p>heißen.</p>
<p>THX <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1305160</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1305160</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Wed, 13 Jun 2007 19:37:12 GMT</pubDate></item></channel></rss>