Autor Beitrag
mtin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177

Win XP SP2
BDS2006 Enterprise
BeitragVerfasst: Mi 12.04.06 12:12 
tja, das wurde ja schon oft gepostet, aber ich hab noch ein besonderes Problem mit meiner Taskleiste! hab jetzt schon viele Codebeispiele probiert, und bei keinem ist mein Form wirklich im Vollbildmodus!
Meine Taskbar ist auf "Immer im Vordergrund" eingestellt!

hab dann hier im SDC diesen code gefunden:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
    HTaskBar := FindWindow('Shell_TrayWnd', nil);
    // Turn SYSTEM KEYS off, Only Win 95/98/ME
    SystemParametersInfo(97, Word(True), @OldVal, 0);
    // Disable the taskbar
    EnableWindow(HTaskBar, False);
    // Hide the taskbar
    ShowWindow(HTaskbar, SW_HIDE);
  finally
    with Form1 do 
    begin
      BorderStyle := bsNone;
      FormStyle   := fsStayOnTop;
      Left        := 0;
      Top         := 0;
      Height      := Screen.Height;
      Width       := Screen.Width;
    end;
  end
der ja eigentlich die Taskbar deaktivieren sollte....das klappt auch soweit, also die Taskbar ist nicht mehr sichtbar aber mein Form geht trotzdem nicht übern ganzen Bildschirm sondern lässt für die Taskleiste einen spalt frei...da seh ich dann einfach das Wallpaper durch...

kann mir da jemand helfen?
DelphiAnfänger
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 112

Win XP, Firefox 2.0, IE6
Delphi 5 Prof., Delphi 2005 PE
BeitragVerfasst: Mi 12.04.06 12:21 
probier mal ob das geht:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
with Form1 do
begin
 BorderStyle := bsNone;
 FormStyle   := fsStayOnTop;
 windowstate := wsMaximized;
end;
mtin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177

Win XP SP2
BDS2006 Enterprise
BeitragVerfasst: Mi 12.04.06 12:28 
mhm...sehr merkwürdig!

hab das in meinem aktuellen Projekt getestet, da gings nicht, wie auch alle anderen Lösungen...immer ist die Taskbar sichtbar!

aber in einem komplett neuen Projekt funktionierts merkwürdigerweise....
werd mir das nochma genauer anschaun...

EDIT: ah habs rausgefunden...hatte noch diese Prozedur drin, damit man das Form nicht außerhalb des Bildschirms ziehen kann...das hat sich wohl irgendwie nicht vertragen :)
ausblenden Delphi-Quelltext
1:
2:
3:
procedure WMWINDOWPOSCHANGING
            (Var Msg: TWMWINDOWPOSCHANGING);
             message WM_WINDOWPOSCHANGING;


danke :D