Autor Beitrag
MichiM
Hält's aus hier
Beiträge: 8



BeitragVerfasst: So 18.12.05 13:24 
Hallo,

mich würd noch interessieren, wie man die Größe eines Forms (VCL?) maximal ausdehnt.
Möchte also, dass die Applikation von Anfang an den Bildschirm voll ausfüllt.

Gibt es so was wie eine
width=100%-Angabe oder muss man
abfragen, wie breit der Bildschirm grad ist und dann die width setzen oder
gibts dafür Methoden mit best. Parametern, über die das einfacher geht?

MfG
Michi


Moderiert von user profile iconGausi: Topic aus Sonstiges verschoben am Do 22.12.2005 um 09:00
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: So 18.12.05 13:26 
Wie wäre es mit Form1.WindowState...
ausblenden Delphi-Quelltext
1:
Form1.WindowState := wsMaximized					


Zuletzt bearbeitet von Danniolo am So 18.12.05 13:27, insgesamt 1-mal bearbeitet
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: So 18.12.05 13:27 
ausblenden Delphi-Quelltext
1:
2:
form1.width := screen.width;
form1.height := screen.height;
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 18.12.05 13:29 
Hallo,

wie wärs damit?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Form1.FormState := fsStayOnTop; //bin mir net sicher ob das jetzt FormState oder FormStyle oder sowas heißt
Form1.width := Screen.width;
Form1.height := Screen.Heigth;
Form1.top := 0;
Form1.left := 0;


Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
MichiM Threadstarter
Hält's aus hier
Beiträge: 8



BeitragVerfasst: So 18.12.05 13:57 
Das klappt so alles der Reihe nach, danke Euch! ;)