Autor Beitrag
RFZ
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Mo 08.07.02 19:55 
Moin, ich hab da soein Problem. Ich hab ein Programm mit 2 Forms. Form1 ist immer sichtbar und im Vordergrund (fsStayOnTop). Form2 soll nur kurz sichtbar sein, dann allerdings auch im Vordergrund! Wie mache ich das, ohne FormStyle kurzzeitig zu ändern, denn dann geht wiederrum mein TrayIcon verlohren, warum weiss ich nicht.
Also, ich hab festgestellt dass Form1.FormStyle automatisch fsNormal wird, wenn ich Form2.FormStyle auf fsStayOnTop stelle, is ja auch logisch. Also geht das nicht.
Wie kann ich jetzt entweder,
die Form2 in den Vordergrund bringen OHNE Form1.FormStyle zu verändern, oder,
wie schaffe ich es dass mit das TrayIcon nicht verlohren geht, wenn ich Form1.FormStyle ändere?

cu RFZ

_________________
PC: Delphi 4, Windows ME, 512MB, 1.2GHz;
Notebook: Delphi 4, Windows XP, 256MB, 660-1.7GHz M, Windows 98*, Windows 98se*, Windows 95* (*VMware)
RFZ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Di 09.07.02 15:18 
Nachtrag:
Ich hab festgestellt dass sich beim ändern von form1.formstyle auch form1.handle ändert. Deswegen verliere ich auch mein TrayIcon!
Wie kann ich nun dafür sorgen dass sich das Handle nicht ändert?

cu RFZ