Autor Beitrag
boozzz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66

Win XP, Win 2000, SuSe Linux

BeitragVerfasst: Mo 30.05.05 13:20 
Hallo,
wenn ich eine GUI-Anwendung in Windows laufen lasse, ist die Größe des Fensters von der Bildschirmauflösung abhängig. Gibt es eine Möglichkeit, die Größe des Fensters (Formulars) für jede Auflösung auf jedem Computer konstant zu halten?
Was muss ich dazu einstellen?


Viele Grüße

boozzz
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Mo 30.05.05 13:26 
user profile iconboozzz hat folgendes geschrieben:
wenn ich eine GUI-Anwendung in Windows laufen lasse, ist die Größe des Fensters von der Bildschirmauflösung abhängig.

Ist sie? :eyes: Also bei mir nicht... ;) TForm.Width und TForm.Height sind feste Werte. Und auf die geht dein Formular bei jeder Auflösung. Außer du hast irgendwie wsMaximized drin oder so. :nixweiss:
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mo 30.05.05 13:32 
@boozzz: Was er meint ist, das ein 640x480er Fenster auf einem VGA-Monitor bildschirmfüllend ist, auf einem 1600x1400er screen müde in der Ecke rumdümpelt (denke ich jedenfalls, das er das so meint).

Natürlich kann man sich eine Routine schreiben, die das Fenster immer auf x% der Bildschirmdialogale zoomt. Nur bringt das nicht viel, weil ja alle anderen Controls, Logos, Labels und vor allen Dingen die Fontgröße entsprechend angepasst werden müssen. Da die Bildschirmschriftarten pixelgenau sind, sieht das Ergebnis beschissen aus.

Es gab vor Äonen bei [url]www.torry.net[/url] mal so eine Komponente, die alle Controls einer Form proportional mit ihrer Größe anpasste: Auch die Fonts (man muss, glaube ich, überall TrueType-Fonts einstellen). Aber, ein TrueType-Arial mit 10.7pt sieht auf dem Screen einfach sche**** aus.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Mo 30.05.05 13:44 
Hmm. Nun ja wenn das so ist, dann würde ich viel mit ALIGN arbeiten. ;)