AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Prism Automatische Bildanpassung
Thema durchsuchen
Ansicht
Themen-Optionen

Automatische Bildanpassung

Ein Thema von daredd · begonnen am 10. Jun 2006 · letzter Beitrag vom 8. Feb 2008
Antwort Antwort
daredd

Registriert seit: 2. Apr 2006
433 Beiträge
 
#1

Automatische Bildanpassung

  Alt 10. Jun 2006, 10:03
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.
  Mit Zitat antworten Zitat
Mokuba01

Registriert seit: 26. Jan 2007
Ort: Neupetershain
76 Beiträge
 
Delphi XE2 Professional
 
#2

Re: Automatische Bildanpassung

  Alt 7. Feb 2008, 20:06
Das haben wir zwar schon mehrfach durchgekaut aber naja...

Delphi-Quellcode:
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;
Und rückgängig:

Delphi-Quellcode:
procedure TForm1.Normalmodus;
var
  HTaskbar: HWND;
  OldVal: LongInt;
begin
BorderStyle := bsSizeable;
FormStyle := fsNormal;
Left := oldX;
Top := oldY;
Height := oldH;
Width := oldW;
end;
folgende Variabeln müssen global deklariert werden:
oldX
oldY
oldH
oldW

Ich hoffe dass ich dir helfen konnte...
Gruß Mokuba01
  Mit Zitat antworten Zitat
Benutzerbild von Matze
Matze
(Co-Admin)

Registriert seit: 7. Jul 2003
Ort: Schwabenländle
14.929 Beiträge
 
Turbo Delphi für Win32
 
#3

Re: Automatische Bildanpassung

  Alt 8. Feb 2008, 05:05
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
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:19 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz