Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by zeras,
6. Jul 2009
So sieht mein Projektquelltext aus.
Application.Initialize;
Application.Title := 'my programm';
Application.CreateForm(TfmMain, fmMain); -->"fsMDIForm"
..............
..............
Application.CreateForm(TfmProzessdata, fmProzessdata); --> "fsMDIChild"
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by zeras,
6. Jul 2009
Offensichtlic habe ich die Richtung gefunden:
das Hauptformular ist ein "fsMDIForm".
Danach erzeuge ich noch ein "fsMDIChild".
Wenn ich das Childformular nutze, dann kommt es nicht zum OnActivate des Hauptformulars.
Warum das so ist, kann ich aber nicht sagen.
Hat jemand eine Idee?
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by zeras,
6. Jul 2009
Es ist das Hauptform. Wenn ich das so in ein neues Projekt schreibe
procedure TForm17.FormActivate(Sender: TObject);
begin
ShowMessage('OnActivate');
end;
dann kommt das Fenster.
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by zeras,
5. Jul 2009
Irgendwie muss das mit dem Projekt zu tun haben. Ursprünglich kam das Projekt von D2. Mit dem Winlocalizer habe ich auch Probleme damit. Wenn ich TBitBtn nutze, werden diese nicht übersetzt. Wenn ich dann auf einen anderen Buttontyp umstelle, geht das.
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by zeras,
5. Jul 2009
Ja, habe es erst in der neuen Version gebraucht und mit Doppelklick dann erzeugt.
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by zeras,
5. Jul 2009
Ich bin dabei, ein Programm von D5 auf D2006 zu portieren.
Das geht auch soweit, aber offensichtlich wird das OnActivate Ereignis des Hauptformulars nicht ausgelöst. Wenn ich einen Breakpoint setze, bleibt das Programm trotzdem nicht drin stehen.
Was mache ich falsch?