Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Bbommel,
9. Sep 2008
Jepp - das ist ja das, was ich im letzten Vorschlag durch das Vertauschen der CreateForms gemacht habe...
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Bbommel,
9. Sep 2008
Noch eine Ergänzung (irgendwie reizt mich das jetzt):
So gehts auch immer und das Programm schließt auch ordentlich. Allerdings hab ich natürlich keine Ahnung, ob das auch für dein echtes Projekt tauglich ist:
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
if ParamCount>0 then begin
Application.CreateForm(TForm2, Form2);
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Bbommel,
9. Sep 2008
Okay, einen hab ich noch. ;)
Ich glaube jetzt mal wieder, dass es läuft, aber bin auch noch nicht so zielsicher im Fehler-Nachstellen wie du selbst (aber keine Sorge, deine Kunden werden das auch schon schaffen, ich kenn das... ;) )
Projektdatei:
if ParamCount>0 then
begin
Application.MainFormOnTaskbar := False;
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Bbommel,
9. Sep 2008
Edit vorab: Hm, vergiss das mal, der Fehler tritt immer noch manchmal auf, sorry. Ist halt doch nicht allzu leicht zu reproduzieren. Manchmal gehts nämlich. :-(
Bei mir läuft es, nachdem ich folgendes gemacht habe:
In der Projektdatei habe ich:
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2); // also auch hier erzeugen...
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Bbommel,
9. Sep 2008
Ich habe auch so einen Fall, dass ich mal das Hauptformular nicht anzeigen will und durch Parameter das Programm dann automatisch etwas tun soll. Ich habe es allerdings so gelöst, dass das Hauptform dennoch erzeugt und nur nicht angezeigt wird - die eigentliche Verarbeitung von Parametern erfolgt dann bei mir auch nicht in der Projektdatei, sondern im FormActivate des Hauptforms (hat den Vorteil,...