Autor Beitrag
adler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Fr 30.01.04 16:26 
Hi!

Wie kann ich machen, das wenn der Focus vom Value listeditor verschwindet, ich eine procedure ausführen kann, oder geht das nicht?

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Fr 30.01.04 18:08 
Wähle im Objektinspektor deinen ValueListEditor aus und klicke auf das Register Ereignisse.

Dort musst du nur doppelt auf den freien Platzt hinter OnExit klicken und schon bist du im Quellcode an der Stelle, die aufgerufen wird, sobald das Steuerelement nicht mehr den Fokus hat.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Fr 30.01.04 18:31 
Hab ich schon Probiert...
Funktioniert nicht, es geht nur wenn ich auf nen Button klicke der auf dem Panel ist... soll aber auch gehen, wenn ich in ein Textfeld klicke.
Das Textfeld ist in einem Child, Sry hab ich vergessen zu sagen.

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Fr 30.01.04 19:41 
Wenn du einem anderen Fenster den Fokus gibts, bleibt der Fokus im letzten Fenster beim Steuerelement.
Aber es wird das Ereignis von TScreen OnActiveControlChange ausgelöst. Zudem beim Fensterwechsel noch OnActiveFormChange.
Damit solltest du das lösen können.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Fr 30.01.04 20:17 
TScreen?

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Fr 30.01.04 20:21 
Manche Menschen würden es auch als deinen Bildschirm bezeichnen.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Fr 30.01.04 20:30 
Weiß ich auch :)
Weiß aber net wie ich ne Abfrage nach OnActiveControlChange mache...

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Fr 30.01.04 20:39 
Folgend:
Du brauchst dafür eine eigene Prozedur
ausblenden Delphi-Quelltext
1:
2:
3:
private
    { Private-Deklarationen }
    procedure TestActiveControlChange(Sender: TObject);

und weißt das dann so zu
ausblenden Delphi-Quelltext
1:
Screen.OnActiveControlChange := TestActiveControlChange;					

Natürlich musst du jetzt noch etwas in der Prozedur machen.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.