Autor Beitrag
koller1
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 216

WIN XP
D7 Ent
BeitragVerfasst: Mo 20.06.05 17:15 
Hallo!

Ich möchte das Form so groß ziehen, wie der Desktop groß ist! Also noch unter die Taskleiste und über den oberen Rand! Geht das? Ich kann keine Werte eingeben, da die Bildschrimauflösung bei allen anders ist? Könnt ihr mir helfen?

MFG
koller1
blaueled
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 133

Win XP
D5
BeitragVerfasst: Mo 20.06.05 17:48 
Wenn du auf Fensterleisten verzichten kannst einfach mit
ausblenden Delphi-Quelltext
1:
2:
WindowState := wsMaximized;
BorderStyle := bsNone;

deine Form vergrößern.

Arne
Becks16
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 405



BeitragVerfasst: Mo 20.06.05 17:49 
da musst du die eigenschaft WindowsState auf Maximal machen das müsste das sein was du meinst ...

_________________
Ich bin Dumm und weiss nichts :-)
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 20.06.05 17:52 
WindowsState aud wsMaximized nützt nichts, da die Form dann nicht hinter die Taskleiste reicht.
Suche nach Suche in: Delphi-Forum, Delphi-Library AUFLÖSUNG bringt dich auf den richtigen Weg.
Becks16
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 405



BeitragVerfasst: Mo 20.06.05 17:54 
aber mich würde mal intressieren warum es über die taskleiste gehen soll ..gibt es da einen besonderen grund für ???

mfg

_________________
Ich bin Dumm und weiss nichts :-)
blaueled
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 133

Win XP
D5
BeitragVerfasst: Mo 20.06.05 17:58 
Genau, es fehlt BorderStyle auf bsNone setzen

Arne
Einloggen, um Attachments anzusehen!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 21.06.05 05:23 
Weiterhin wird bei euch nicht beachtet, dass manche Leute Multimonitor-Systeme besitzen und wsMaximized <> Desktop-Auflösung ist.

Ich weiß zwar, dass viele cvs.sourceforge.net/...rce/OIncMonitors.pas bereits irgendwo hier im Forum schonmal erwähnt gefunden haben; dort gibt es nämlich recht einfach zu nutzende Funktionen drin, die die Gesamtauflösung für den Desktop korrekt ermitteln. können.

ausblenden Pseudo-Code:
1:
2:
MaxXRes := Max(Monitor.Left+Monitor.ResX);
MaxYRes := Max(Monitor.Top+Monitor.ResY);


Mit besagter Unit etwa 10 zu implementierende Zeilen, da das Layout demnächst aber etwas geändert wird, verzichte ich an dieser Stelle auf eine konkrete Implementation. Man beachte aber, dass das dadurch erhaltene Rechteck nicht vollständig auch sichtbar sein muss!

Achso: Auf Multimon-Systemen ist es generell nicht gern gesehen, etwas über 2 Monitore hinwegzuziehen ... Von daher ist ein Position := poDesktopCenter; so unbeliebt wie Windows bei nem Linux-Native ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.