Autor Beitrag
Roadrunner116
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 89

Win XP Home, Ubuntu Linux 6.06
Delphi 7, Java, PHP
BeitragVerfasst: Mo 09.10.06 17:23 
Hi!
Ich möchte etwast wahrshcienlich ganz simples!
Ich möchte mein Form auf die Bildschirmproportionren zentrieren.
Ich habe keine Funktion gefunden also wollte ich die Bildshcirmbreite ermitteln die Formbreite abziehen, das ergenis durch 2 teilen und als "Left" setzen.
Jedoch weiß ich auch nicht wie man die bildschirmbreite abruft.
Wäre nett wenn mir jemdn helfen würde

Gruß Jonas
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mo 09.10.06 17:26 
ausblenden Delphi-Quelltext
1:
Form.Position := poScreenCenter;					

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mo 09.10.06 20:58 
Hm nur der Vollständigkeit halber:
Die Bildschirmbreite ermittelst du mit Screen.Width (Klappt IIRC nich bei Multimonitor systemen)

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Mo 09.10.06 21:23 
user profile iconJayEff hat folgendes geschrieben:
Hm nur der Vollständigkeit halber:
Die Bildschirmbreite ermittelst du mit Screen.Width (Klappt IIRC nich bei Multimonitor systemen)
Auch nur Vollständigkeitshalber:
Mit Screen.Monitorcount kann man die Monitoranzahl bekommen und die Größe des Desktops mit Screen.DesktopWidth.

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Roadrunner116 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 89

Win XP Home, Ubuntu Linux 6.06
Delphi 7, Java, PHP
BeitragVerfasst: Mi 15.11.06 21:18 
Titel: danke
danke für eure hilfe!

Es funktioniert!
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 15.11.06 23:59 
Falls du die Form schon beim Programmstart zentrieren willst kannst du im Objectinspector Position auf poScreenCenter stellen.

MfG
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Fr 17.11.06 10:37 
user profile iconKroko hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
Form.Position := poScreenCenter;					

...wie hier bereits erwähnt wurde... ;)

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Fr 17.11.06 13:43 
@JayEff

Wer lesen kann, ist klar im Vorteil! :wink:

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!