Autor Beitrag
nixblicker
Hält's aus hier
Beiträge: 12



BeitragVerfasst: Fr 30.10.09 16:48 
Hallo!

Ich bin dabei, von Visual Basic. NET auf Delphi umzusteigen. Das alles hat eigentlich gut geklappt, nur ein paar Einzelheiten fehlen mir noch. In VB.NET konnte man die Position eines Fensters ja mit dem Code
ausblenden Quelltext
1:
Me.Location = point					
bestimmen.

Wie schaff ich das mit Delphi?

Vielen Dank im Voraus!

Mfg

Moderiert von user profile iconNarses: Überflüssige Zeilenumbrüche/Leerzeilen entfernt.
Hugo343
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 114
Erhaltene Danke: 2

Windows 7
Turbo Delphi, Dev C++
BeitragVerfasst: Fr 30.10.09 16:57 
Die Propertys Form1.Left (X-Koordinate) und Form1.Top (Y-Koordinate) bestimmen die Position.

Beispiel:
ausblenden Delphi-Quelltext
1:
2:
Form1.Left:=200;
Form1.Top:=300;
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Fr 30.10.09 17:12 
Wenn du das Formular lediglich am Bildschirm zentrieren möchtest kannst du der Eigenschaft Position deiner Form einfach poScreenCenter zuweisen.

ausblenden Delphi-Quelltext
1:
  Form1.Position := poScreenCenter;					
nixblicker Threadstarter
Hält's aus hier
Beiträge: 12



BeitragVerfasst: Fr 30.10.09 17:17 
Okay, hat geklappt.

Danke für die schnelle Antwort!

Mfg.