Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Fenster immer im Vordergrund? (https://www.delphipraxis.net/866-fenster-immer-im-vordergrund.html)

City Light 21. Feb 2003 11:41

Hab den Fehler gefunden! *freu*

Hinter else fehlten noch begin und end;

Delphi-Quellcode:
procedure TForm2.Button1Click(Sender: TObject);
begin
  if Form1.Visible = False then
  begin
    Form1.Visible := True;
    SetWindowLong(Handle, GWL_HWNDPARENT, Application.Handle);
  end
  else
  begin
  Form1.Hide;
  SetWindowLong(Handle, GWL_HWNDPARENT, 0);
  Edit1.SetFocus;
  end;
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:56 Uhr.
Seite 2 von 2     12   

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