Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Hauptform verschwindet nach Aufruf eines anderen Forms (https://www.delphipraxis.net/205749-hauptform-verschwindet-nach-aufruf-eines-anderen-forms.html)

Uwe Raabe 13. Okt 2020 14:40

AW: Hauptform verschwindet nach Aufruf eines anderen Forms
 
Wie sieht denn deine DPR aus? Insbesondere in Bezug auf MainFormOnTaskbar?

DonManfred 13. Okt 2020 14:43

AW: Hauptform verschwindet nach Aufruf eines anderen Forms
 
Zitat:

Zitat von Uwe Raabe (Beitrag 1475477)
Wie sieht denn deine DPR aus? Insbesondere in Bezug auf MainFormOnTaskbar?

Das ist die aktuelle DPR. Viele CreateForm geREMt um das Problem zu finden.

Code:
program Service;

uses
  madExcept,
  madLinkDisAsm,
  madListHardware,
  madListProcesses,
  madListModules,
  Forms,
  anmerkungen in 'anmerkungen.pas' {Form4},
  arbeitszeiten in 'arbeitszeiten.pas' {frmzeiten},
  artikelliste in 'artikelliste.pas' {artlist},
  bsumme in 'bsumme.pas' {frm_b},
  bvhselect in 'bvhselect.pas' {frmbvhselect},
  bvhsuchen in 'bvhsuchen.pas' {frmbvhsuchen},
  debug in 'debug.pas' {dbg},
  dm in 'dm.pas' {db: TDataModule},
  dmActionsSRV in 'dmActionsSRV.pas' {srvActionsResource: TDataModule},
  email in 'email.pas' {frmemail},
  frmkvdruck in 'frmkvdruck.pas' {kvdruck},
  int3OnFileDrop in 'int3OnFileDrop.pas',
  kommentare in 'kommentare.pas' {frmkommentar},
  kvtermine in 'kvtermine.pas' {frmkvtermine},
  logger in 'logger.pas' {log},
  main in 'main.pas' {frmmain},
  material in 'material.pas' {frmmaterial},
  md5 in 'md5.pas',
  monteure in 'monteure.pas' {frmmonteure},
  notizen in 'notizen.pas' {frmnotizen},
  rechtenamedefinieren in 'rechtenamedefinieren.pas' {frmrechtename},
  reklamation in 'reklamation.pas' {frmrekla},
  rma_per_email in 'rma_per_email.pas' {frmrmaemail},
  SPGetSid in 'SPGetSid.pas',
  superobject in 'superobject.pas',
  superxmlparser in 'superxmlparser.pas',
  unix_utils in 'unix_utils.pas',
  ushfileoperation in 'ushfileoperation.pas';

{$R *.res}

begin
  Application.Initialize;
  Application.HelpFile := '';
  Application.CreateForm(Tfrmmain, frmmain);
  //Application.CreateForm(Tdb, db);
  //Application.CreateForm(Tlog, log);
  //Application.CreateForm(Tdbg, dbg);
  //Application.CreateForm(Tkvdruck, kvdruck);
  //Application.CreateForm(Tfrmzeiten, frmzeiten);
  //Application.CreateForm(Tartlist, artlist);
  //Application.CreateForm(Tfrm_b, frm_b);
  //Application.CreateForm(Tfrmmonteure, frmmonteure);
  //Application.CreateForm(Tfrmnotizen, frmnotizen);
  //Application.CreateForm(Tfrmrmaemail, frmrmaemail);
  //Application.CreateForm(Tfrmemail, frmemail);
  //Application.CreateForm(TForm4, Form4);
  //Application.CreateForm(Tfrmbvhselect, frmbvhselect);
  Application.CreateForm(Tfrmbvhsuchen, frmbvhsuchen);
  //Application.CreateForm(Tfrmrekla, frmrekla);

  //Application.CreateForm(Tfrmmaterial, frmmaterial);
  //Application.CreateForm(TsrvActionsResource, srvActionsResource);

  //Application.CreateForm(Tfrmkommentar, frmkommentar);
  //Application.CreateForm(Tfrmkvtermine, frmkvtermine);
  //Application.CreateForm(Tfrmrechtename, frmrechtename);


  //Application.CreateForm(Tfrmbvhselect, frmbvhselect);
  //Application.CreateForm(Tfrmbvhsuchen, frmbvhsuchen);
  Application.Run;
end.
Aber auch das setzen von MainFormOnTaskbar (true oder false) bringt keine Änderung. Abgesehen davon das das Item auf der Taskbar einen anderen Titel bekommt. Problematik bleibt jedoch bestehen.

himitsu 13. Okt 2020 15:50

AW: Hauptform verschwindet nach Aufruf eines anderen Forms
 
Delphi-Quellcode:
Application.Initialize;
Application.MainFormOnTaskbar := True;
...
Application.CreateForm(...); // 1. = MainForm
Application.CreateForm(...);
Seit Vista hat sich da so einiges geändert -> AeroPeak und Co.

Dann sollte in der Taskleiste besser die Hauptform sein.
* False = das unsichtbare Application.Handle ist in der Taskleiste
* True = Mainform.Handle ist dort als Button

DonManfred 19. Okt 2020 11:36

AW: Hauptform verschwindet nach Aufruf eines anderen Forms
 
Vielen Dank nochmal an alle die Hinweise gegeben haben!

Nachdem ich nun auch Delphi auf 10.4 upgegradet habe sind alle vorhandenen Probleme behoben.
Der Umbau auf 10.4 hat zwar auch nochmal ein paar weitere Tage Umbauarbeiten gekostet aber jetzt scheint alles zu laufen. :-D


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:50 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz