Autor Beitrag
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Mo 17.05.04 14:11 
Wie kann ich feststellen ob mein Programm den Focus verloren hat? Sprich der Benutzer in einem anderen Programm ist.

lemming
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 17.05.04 19:30 
das eregnis OnDeactivate von deinem Form.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
luckyluke84
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 54

WinXP
Lazarus
BeitragVerfasst: Do 11.08.05 09:40 
Ich hab schon alles mögliche probiert,
aber die Procedure OnDeactivate wird
bei mir einfach nicht aufgerufen.

OnActivate hingegen funktioniert
problemlos.

Ich benutze Delphi 7 und WinXP
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 11.08.05 11:22 
Hallo,

vllt. hilft Dir der letzte Beitrag (bzgl. XP <> Win 98 ) in dem Thread weiter:
Form Close wenn gesammtes Programm nicht aktiv

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
hallo
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 450

WIN XP, SuSE 9.3
D3 Prof, D6 Pers, 2005 Pers
BeitragVerfasst: Do 11.08.05 11:47 
ausblenden Delphi-Quelltext
1:
if (form1.Handle=windows.GetForegroundWindow)then ...					

Für Form1 musst du dein Eigenes Form einsetzen!

_________________
Der beste je Programmierte Trojaner: Windows XP
Wäre es nicht adequat, den Usus heterogener Termini zu minimieren?