Autor Beitrag
Dr. Zoidberg
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 29

Win 95, Win XP Home
D3 Prof, D7 Pers
BeitragVerfasst: So 23.05.04 11:07 
Wie kann ich es machen, dass das Programm über den ganzen Bildschirm verläuft, also, dass oben kein Symbol zum verkleinern/vergrößern mehr ist, bzw unten ist die Symbolleiste weg und so?


Schon mal vielen Dank im vorraus.
Philer
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 79

Win XP Home
D7 Enterprise
BeitragVerfasst: So 23.05.04 13:46 
1. BorderStyle von TForm1 auf bsNone setzen
2. WindowState auf wsMaximized stellen
3. Ich würde auch noch FormStyle auf fsStayOnTop setzen

und fertig..

aber es gibt noch ne möglich keit seine anwendung auf FullScreen zu stellen:

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
   [...]
Private
    Procedure WMGetMinMaxInfo(Var msg: TWMGetMinMaxInfo); // in Form Deklaration
    message WM_GETMINMAXINFO;
Puplic
   [...]

Procedure TForm1.WMGetMinMaxInfo(Var msg: TWMGetMinMaxInfo);
Begin
  inherited;
  With msg.MinMaxInfo^.ptMaxTrackSize Do Begin
    X := GetDeviceCaps( Canvas.handle, HORZRES ) +
                      (Width - ClientWidth);
    Y := GetDeviceCaps( Canvas.handle, VERTRES ) +
                      (Height - ClientHeight);
  End;
End;

procedure TForm1.FormCreate(Sender: TObject);
var
  Rect: TRect;
begin
    Rect := BoundsRect;
    SetBounds(
      Left - ClientOrigin.X,
      Top - ClientOrigin.Y,
      GetDeviceCaps(Canvas.handle, HORZRES) +
                   (Width - ClientWidth),
      GetDeviceCaps(Canvas.handle, VERTRES) +
                   (Height - ClientHeight ));
end;


Mfg Philer

_________________
- Delphi n00b -
-Philer teh thriller-
Dr. Zoidberg Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 29

Win 95, Win XP Home
D3 Prof, D7 Pers
BeitragVerfasst: So 23.05.04 15:16 
Cool, es funktioniert.

Vielen, vielen dank.
aXiEd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mo 28.03.05 21:46 
Und wie kommt man davon wieder in den normalen Fenstermodus?
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Di 29.03.05 16:46 
Windowstate zurück auf wsnormal, Borderstyle auf bssizeable...
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Di 29.03.05 17:07 
@Philer: Da schöne an Delphi ist auch, das es viele Dinge kapselt ;), so zum Beispeil auch folgendes:
ausblenden Delphi-Quelltext
1:
2:
3:
  //GetDeviceCaps(Canvas.handle, HORZRES);
  //Kurz:
  Screen.Width;
um zurück auf die ursprüngliche Größe zu kommen, musst du einfach wieder das Formular vekleinern und die anderen Eigenschaften "ruckgängig" machen.

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.