Delphi-PRAXiS
Seite 1 von 2  1 2      

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 Formular und position (https://www.delphipraxis.net/73638-formular-und-position.html)

Gandalfus 20. Jul 2006 22:22


Formular und position
 
Folgender Code funktioniert nicht(Formular wird immer oben links angezeigt)):

Delphi-Quellcode:
  test: TForm;
begin
  test := TForm.CreateNew(Application);
  test.Left := 500;
  test.top := 500;
  test.show;
man kann die Position nach dem anzeigen verändern das führt aber zu unschönen Effekten.
Ich kann die Position auch nicht in onshow oder onpaint ändern weil das nicht ins Programm Design passt.

siehe auch: http://forum.dsdt.info/viewtopic.php?t=30299

3_of_8 20. Jul 2006 22:28

Re: Formular und position
 
Ich hab mir mal schnell ein Testprogramm erstellt, mit dem das ganze wunderbar funktioniert.

Ich hab nur die Konstruktionsweise geändert, da ich sonst die Hauptbotschaftsschleife nicht aufrufen kann.

Delphi-Quellcode:
program Project2;

uses
  SysUtils, Forms;

var test: TForm;
begin
  Application.Initialize;
  Application.CreateForm(TForm, test);
  test.Left := 500;
  test.top := 500;
  test.show;
  Application.Run;
end.

cruso 20. Jul 2006 23:06

Re: Formular und position
 
Warum änderst dus nicht im Objektinspektor? Oder mistverstehe ich deine Frage?

Namenloser 20. Jul 2006 23:07

Re: Formular und position
 
Zitat:

Zitat von cruso
Warum änderst dus nicht im Objektinspektor? Oder mistverstehe ich deine Frage?

es geht ja anscheinend um dynamisch erstellte Forms :wink:

cruso 20. Jul 2006 23:14

Re: Formular und position
 
Zitat:

Zitat von NamenLozer
Zitat:

Zitat von cruso
Warum änderst dus nicht im Objektinspektor? Oder mistverstehe ich deine Frage?

es geht ja anscheinend um dynamisch erstellte Forms :wink:

Ok. Nächstes mal genauer lesen. :oops: :roll: :pale:

Gandalfus 21. Jul 2006 02:14

Re: Formular und position
 
Zitat:

Zitat von 3_of_8
Ich hab mir mal schnell ein Testprogramm erstellt, mit dem das ganze wunderbar funktioniert.

unter welcher delphi Version?

Michael Habbe 21. Jul 2006 02:19

Re: Formular und position
 
Schau Dir mal die Eigenschaft "Position" des Formualars in der OH an.

Gandalfus 21. Jul 2006 12:48

Re: Formular und position
 
und was hat das mit dem Problem zu tun.

3_of_8 21. Jul 2006 12:55

Re: Formular und position
 
Ich habs in D7 getestet.

Michael Habbe 21. Jul 2006 13:44

Re: Formular und position
 
Zitat:

Zitat von Gandalfus
und was hat das mit dem Problem zu tun.

:gruebel: :gruebel:

Du hast doch ne Frage gestellt.

Also: schau mal in den Objektinspektor auf die Eigenschaft Position des Formulars und rufe dann die Hilfe auf.


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:52 Uhr.
Seite 1 von 2  1 2      

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