Delphi-PRAXiS

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 Ist eine Form Visible (https://www.delphipraxis.net/25353-ist-eine-form-visible.html)

franktron 5. Jul 2004 11:02


Ist eine Form Visible
 
Wie kann ich rausfinden ob eine From gearde angezeigt wir oder nicht.

z.b. wenn sie nicht in der Startleieste liegt oder von einer anderen Form überdeckt wird.

Luckie 5. Jul 2004 11:14

Re: Ist eine Form Visible
 
Frag doch die Eigenschaft Visible ab.

Matze 5. Jul 2004 11:37

Re: Ist eine Form Visible
 
Zitat:

Zitat von franktron
z.b. wenn sie nicht in der Startleieste liegt oder von einer anderen Form überdeckt wird.

Möchtest du nur abfragen, ob das Formular "Visible" ist (s. Luckie) oder möchtest du abfragen, ob das Formular vor allen anderen fenstern liegt?

franktron 5. Jul 2004 12:13

Re: Ist eine Form Visible
 
Eigentlich will ich nur einen Timer anhalten um res. zu sparen wenn der benutzer die Form nicht sieht.

S2B 5. Jul 2004 13:41

Re: Ist eine Form Visible
 
Delphi-Quellcode:
  if Form1.Visible=false then
  Timer1.Enabled:=false;
So müsst es gehen!

Mirilin 5. Jul 2004 13:43

Re: Ist eine Form Visible
 
@S2b

Einfacher :)
Delphi-Quellcode:
Timer.Enabled := MainForm.Visible;
mfg Tobias

S2B 5. Jul 2004 13:44

Re: Ist eine Form Visible
 
Ich sag nur: :wall:

:mrgreen:

Ratte 5. Jul 2004 14:11

Re: Ist eine Form Visible
 
Hi,

vielleicht könntest du mit hilfe des Ereignisses OnIdle von AppEvents und einem Timer das ganze nach x Sekunden ohne aktivität stoppen.

Ratte


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:52 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz