![]() |
Automatische Bildanpassung
Tag Leute,
wie kann ich es so machen das sich mein Programm, das ich schreibe, im Vollbildmodus öffnet, sprich das sich das Programm der Bildschirmauflösung automatisch anpasst?? Weil zur Zeit seh ich immer noch die Taskleiste wenn ich mein aufgeht. :dancer2: |
Re: Automatische Bildanpassung
Das haben wir zwar schon mehrfach durchgekaut aber naja...
Delphi-Quellcode:
Und rückgängig:
procedure TForm1.Vollbild;
var HTaskbar: HWND; OldVal: LongInt; begin oldW := Width; oldH := Height; oldX := Left; oldY := Top; BorderStyle := bsNone; FormStyle := fsStayOnTop; Left := 0; Top := 0; Height := Screen.Height; Width := Screen.Width; end;
Delphi-Quellcode:
folgende Variabeln müssen global deklariert werden:
procedure TForm1.Normalmodus;
var HTaskbar: HWND; OldVal: LongInt; begin BorderStyle := bsSizeable; FormStyle := fsNormal; Left := oldX; Top := oldY; Height := oldH; Width := oldW; end; oldX oldY oldH oldW Ich hoffe dass ich dir helfen konnte... Gruß Mokuba01 |
Re: Automatische Bildanpassung
Hallo,
die Frage ist ganz schön alt (10.06.2006). ;) Der Thread-Ersteller hat als Sprache jedoch Delphi (.NET) angegeben und kein Win32, was dein Source jedoch wäre, Mokuba01. Es kann natürlich sein, dass sich der Autor geirrt hat. Ich vermute auch, dass sich das Problem mittlerweile geklärt hat, doch daredd ist ja noch aktiv in der DP und kann uns sicher aufklären. :) Grüße |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:44 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz