Autor Beitrag
Killi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Do 07.08.03 11:27 
Hi!

Ich hab ein Prog das im SysTray läuft - also mit Icon neben der Uhr - jetzt prüfe ich ob Termine anstehen und will ein Fenster (nicht das MainForm) anzeigen lassen - natürlich sieht man es nicht so wenn man andere Fenster wie den IE offen hat, da es im Hintergrund läuft...und in der TaskBar steht auch nichts, da das Icon schon vorhanden ist...wie kann ich jetzt das Fenster in den VORDERgrund bringen, damit man es gleich vor den Augen hat? BringToFront bringt nichts...
Terra23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 872

Win 8
Delphi 7
BeitragVerfasst: Do 07.08.03 11:37 
Klappt es denn mit:

ausblenden Delphi-Quelltext
1:
Form1.FormStyle:=fsStayOnTop;					


:?: :!: :?:

_________________
Hasta La Victoria Siempre
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Do 07.08.03 12:04 
:cry:
Taladan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 88


Delphi 2005 Personal
BeitragVerfasst: Do 07.08.03 12:25 
wenn das icon vorhanden ist, ist dein Programm evtl minimiert?

DeineFormvomMeldungsfenster.windowsstate := wsnormal;
DeineFormvomMeldungsfenster.position := poDesktopCenter;
DeineFormvomMeldungsfenster.FormStyle:=fsStayOnTop;
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Fr 08.08.03 14:25 
Nee ,mit dem minimieren hats nicht geklappt, dass ich dann noch eingeloggt war (ist mit einloggen usw. - und das ist wichtig) - also hab ich das Fenster 1x1 Pixel groß gemacht und Left:= Screen.Left - 1 usw!
Groß machen klappt ja wieder - aber hervorheben kann ichs eben nicht...
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 08.08.03 15:33 
SetWindowPos und als zweiten Parameter HWND_TOP probieren. Unter XP läßt sich allerdings ein Fenster nicht mehr so einfach in den Vordergrungzwingen. Alternativ wäre eine systemmodale Messagebox denkbar.
recall
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Mo 11.08.03 01:13 
@Killi:
Zitat:
BringToFront bringt nichts...

Meinst du Form1.BringToFront ? Das ist klar !

Musst du nicht dein Prg in den Vordergrund bringen ?
ausblenden Quelltext
1:
Application.BringToFront;					


Das klappt eigentlich immer :D

Viele Grüsse.