Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi prüfen ob Formular verdeckt ist (https://www.delphipraxis.net/75702-pruefen-ob-formular-verdeckt-ist.html)

Sko 23. Aug 2006 22:47

Re: prüfen ob Formular verdeckt ist
 
Ok, jetz funktioniert es, vielen Dank! :thumb:

Sko 23. Aug 2006 22:51

Re: prüfen ob Formular verdeckt ist
 
Huch, wenn das Fenster maximiert ist gehts nicht mehr :gruebel:
EDIT: so siehts jetzt aus:
Delphi-Quellcode:
function TMainForm.IsOnTop: boolean;
begin
  result := false;
  if (WindowFromPoint(Point(Left + 10, Top + 10)) = Self.Handle)
  and (WindowFromPoint(Point(Left + Width - 5, Top + Height - 5)) = Self.Handle) then result := true;
end;

Sko 24. Aug 2006 23:09

Re: prüfen ob Formular verdeckt ist
 
*push* :duck:


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:54 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