Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Bereits existierendes Fenster als Application.Mainform (https://www.delphipraxis.net/62869-bereits-existierendes-fenster-als-application-mainform.html)

marsupilami79 10. Feb 2006 17:10


Bereits existierendes Fenster als Application.Mainform
 
Hallihallo,

ich möchte als Hauptfenster meines Programms ein Fenster benutzen, das eigentlich schon da ist. Es wird von einem Package im initialization-Abschnitt einer Unit erzeugt. Da das Form Auch relativ tief in das Package integriert ist, kann ichs nicht einfach zerstören und nochmal neu erzeugen. Gibts da 'ne Möglichkeit?

Randinfo: Das Package ist FreeReport 2.33 und das Formular der Reportdesigner.
Grüße,

ein Jan

marsupilami79 22. Feb 2006 11:07

Re: Bereits existierendes Fenster als Application.Mainform
 
In Anlehnung an XP Style für ein Form abschaltbar? (1) sieht das ganze getzt so aus:

Delphi-Quellcode:
var
  p: ^TForm;

...

  p := @(Application.MainForm);
  p^ := frDesigner;
Viel mehr scheint Application.CreateForm ja auch nicht zu machen. Zumindest wirft Delphi erstmal nicht mit irgendwelchen Exceptions nach mir ;)
Grüße,

ein Jan

1) http://www.delphipraxis.net/internal...=336461#336461


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:37 Uhr.

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