Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Application.Restore über TrayIcon problem (https://www.delphipraxis.net/127171-application-restore-ueber-trayicon-problem.html)

thomas2009 9. Jan 2009 18:13

Re: Application.Restore über TrayIcon problem
 
ja, das stimmt aber nun habe ich auch einen Test mit einem Form gemacht aber es passiert nichts
das Program (Form1) bleibt doch im Taskleiste von Windows minimiert
Delphi-Quellcode:
procedure TForm1.TrayIcon1DblClick(Sender: TObject);
begin

Application.ShowMainForm := true;
Application.Restore;
end;
EDIT:
Das war mit CoolTrayIcon
Mit dem JV TrayIcon hat es geklappt. Allerdings nur wenn ich Form1 (Mainform) minimiere

Gibt es keine Lösung wenn Form2 nicht das hauptformular ist ?
Ich minimiere Form2 (kein Mainform). Form2 nach dem Minimieren kommt in Taskbar ganz normal und nicht über Taskleise rechts, da ich was gebastelt habe

Tarry 10. Jan 2009 00:30

Re: Application.Restore über TrayIcon problem
 
Hi,
ich bin nciht sicher, ob ich das Problem richtig verstanden habe, aber ich werde trotzdem mal meinen Senf dazu geben ;)

Wenn du die Komponente TCoolTrayIcon benutzt musst du ein Fenster sichtbar zu machen zusaetzlich folgenden Code aufrufen:
Delphi-Quellcode:
TCoolTrayIcon1.Minimized := true;
Gruss
Thomas


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:35 Uhr.
Seite 2 von 2     12   

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