Einzelnen Beitrag anzeigen

TurboMartin

Registriert seit: 13. Feb 2006
Ort: Bad Honnef
765 Beiträge
 
Turbo Delphi für Win32
 
#2

Re: Taskleiste taucht plötzlich auf

  Alt 13. Okt 2006, 11:22
Zitat von -=cats=-:
Delphi-Quellcode:
procedure TForm1.FormPaint(Sender: TObject);
begin
  if WindowState = wsMaximized then
  begin
   Button1.Visible := false;
   SpeedButton1.Visible := true;
   SpeedButton2.Visible := true;
   SpeedButton3.Visible := true;
   SpeedButton4.Visible := true;
    SetWindowLong(Handle, GWL_STYLE, GetWindowLong(Handle, GWL_STYLE) AND NOT WS_CAPTION);
  end;
end;
Weiß vielleicht jemand woran das liegt ?
Hatte ich gestern nicht das mit FormResize???

procedure TForm1.FormResize(Sender: TObject);
begin
if WindowState = wsMaximized then
begin
Button1.Visible := false;
SpeedButton1.Visible := true;
SpeedButton2.Visible := true;
SpeedButton3.Visible := true;
SpeedButton4.Visible := true;
SetWindowLong(Handle, GWL_STYLE, GetWindowLong(Handle, GWL_STYLE) AND NOT WS_CAPTION);
end;
end;
[/delphi]
Tomorrow will be cancelled due to lack of interest.

  Mit Zitat antworten Zitat