AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Formular und position

Ein Thema von Gandalfus · begonnen am 20. Jul 2006 · letzter Beitrag vom 21. Jul 2006
Antwort Antwort
Seite 1 von 2  1 2      
Gandalfus

Registriert seit: 19. Apr 2003
407 Beiträge
 
Delphi 2006 Professional
 
#1

Formular und position

  Alt 20. Jul 2006, 21:22
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
Besucht doch mal meine Homepage
  Mit Zitat antworten Zitat
Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#2

Re: Formular und position

  Alt 20. Jul 2006, 21:28
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.
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat
cruso
(Gast)

n/a Beiträge
 
#3

Re: Formular und position

  Alt 20. Jul 2006, 22:06
Warum änderst dus nicht im Objektinspektor? Oder mistverstehe ich deine Frage?
  Mit Zitat antworten Zitat
Namenloser

Registriert seit: 7. Jun 2006
Ort: Karlsruhe
3.724 Beiträge
 
FreePascal / Lazarus
 
#4

Re: Formular und position

  Alt 20. Jul 2006, 22:07
Zitat von cruso:
Warum änderst dus nicht im Objektinspektor? Oder mistverstehe ich deine Frage?
es geht ja anscheinend um dynamisch erstellte Forms
  Mit Zitat antworten Zitat
cruso
(Gast)

n/a Beiträge
 
#5

Re: Formular und position

  Alt 20. Jul 2006, 22:14
Zitat von NamenLozer:
Zitat von cruso:
Warum änderst dus nicht im Objektinspektor? Oder mistverstehe ich deine Frage?
es geht ja anscheinend um dynamisch erstellte Forms
Ok. Nächstes mal genauer lesen.
  Mit Zitat antworten Zitat
Gandalfus

Registriert seit: 19. Apr 2003
407 Beiträge
 
Delphi 2006 Professional
 
#6

Re: Formular und position

  Alt 21. Jul 2006, 01:14
Zitat von 3_of_8:
Ich hab mir mal schnell ein Testprogramm erstellt, mit dem das ganze wunderbar funktioniert.
unter welcher delphi Version?
Besucht doch mal meine Homepage
  Mit Zitat antworten Zitat
Benutzerbild von Michael Habbe
Michael Habbe

Registriert seit: 10. Aug 2005
264 Beiträge
 
Turbo Delphi für Win32
 
#7

Re: Formular und position

  Alt 21. Jul 2006, 01:19
Schau Dir mal die Eigenschaft "Position" des Formualars in der OH an.
  Mit Zitat antworten Zitat
Gandalfus

Registriert seit: 19. Apr 2003
407 Beiträge
 
Delphi 2006 Professional
 
#8

Re: Formular und position

  Alt 21. Jul 2006, 11:48
und was hat das mit dem Problem zu tun.
Besucht doch mal meine Homepage
  Mit Zitat antworten Zitat
Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#9

Re: Formular und position

  Alt 21. Jul 2006, 11:55
Ich habs in D7 getestet.
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat
Benutzerbild von Michael Habbe
Michael Habbe

Registriert seit: 10. Aug 2005
264 Beiträge
 
Turbo Delphi für Win32
 
#10

Re: Formular und position

  Alt 21. Jul 2006, 12:44
Zitat von Gandalfus:
und was hat das mit dem Problem zu tun.


Du hast doch ne Frage gestellt.

Also: schau mal in den Objektinspektor auf die Eigenschaft Position des Formulars und rufe dann die Hilfe auf.
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 2  1 2      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:58 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