Autor Beitrag
Solid Snake
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44

Win XP Prof, Suse Linux 9 Prof
D7 Enterprise
BeitragVerfasst: Mo 16.05.05 17:54 
hi
Ich habe ein kleines Programm was sich über die "CoolTrayIcon" Komponente in den Systray minimiert!

Wie kann ich überprüfen ob die anwendung im Systray ist?
also irgendwie so:
ausblenden Delphi-Quelltext
1:
If "Programm im Systray" then ......					


Desweitern habe ich noch ein Problem!
Wenn das Programm im Systray ist und etwas bestimmtes passiert erscheint ein kleines PopUp über dem SystrayIcon und schiebt sich dann langsam wieder hinter den Systray! Das klappt auch so alles schon wunderbar nur das Problem ist dass dann immer wenn die Form (bei mir Form4) über dem Systray aufpopt sie auch in der Taskleiste erscheint!

Wie bekomme ich den eintrag von Form4 aus der Taskleiste raus ohne das der eintrag der MainForm hinterher auch weg ist?

mfg
Solid Snake

_________________
Wenn der Computer mit 0100101001010 Arbeitet ist ok,
aber wenn er mit 110 anfängt mach ich ihn kaputt!
TimonWorld
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 397



BeitragVerfasst: Mo 16.05.05 18:48 
Ich würde hier die Komponente TTrayIcon von den ABF-Komponenten benutzen. Wenn du bei Torry unter ABF guckst, gibt es ein kleineres Komponenten-Pack, das Freeware ist, wo TTrayIcon enthalten ist. Du hast damit folgende Vorteile: - Du kannst ein Icon auswählen, - Du kannst eine Animation anzeigen lassen, - Du kannst ein Popup zeigen lassen, - Unter XP und 2000 kannst du Sprechblasen über dem Tray anzeigen lassen etc... Ich komme damit gut zurecht und bin auch sehr zufrieden mit.

Gruß,
Timon.
Solid Snake Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44

Win XP Prof, Suse Linux 9 Prof
D7 Enterprise
BeitragVerfasst: Mo 16.05.05 19:13 
Das alles kann die Komponete auch!
Und ich wollte jetzt eigentlich nicht wieder alles ändern!
Habe nämlich schon alles so schön eingerichtet mit Icon wechsel etc.

Hast du denn keinen lösungsvorschlag für meine beiden Probleme in meiner zusammenstellung?

//EDIT
Mit Popup meinte ich nicht diese Sprechblasen sondern eine Form die erscheint und sich dan wieder ausblendet so wie z.B. beim MediaPlayer wenn der In die Taskbar Minimiert ist und man mit der Maus drüber fährt oder wie bei ICQ wenn dich jemand zur kontaktliste hinzugefügt hat etc.

_________________
Wenn der Computer mit 0100101001010 Arbeitet ist ok,
aber wenn er mit 110 anfängt mach ich ihn kaputt!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 17.05.05 13:31 
also für dein erstes problem müsste dir die funktion isIconichelfen können:
ausblenden Delphi-Quelltext
1:
if isiconic (handle) then					


dein 2. problem könnte so zu lösen sein:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.FormCreate(Sender: TObject);
begin
  ShowWindow( Application.Handle, SW_HIDE );
  SetWindowLong( Application.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
  ShowWindow( Application.Handle, SW_SHOW );
end;

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Solid Snake Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44

Win XP Prof, Suse Linux 9 Prof
D7 Enterprise
BeitragVerfasst: Sa 21.05.05 16:37 
Mit
if isiconic (handle) then
klappt es leider nicht!

Und
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.FormCreate(Sender: TObject);  
begin  
  ShowWindow( Application.Handle, SW_HIDE );  
  SetWindowLong( Application.Handle, GWL_EXSTYLE,  
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or  
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);  
  ShowWindow( Application.Handle, SW_SHOW );  
end;

hatte ich auch schon versucht doch dadurch verschwindet auch der TaskBareintrag von der MainForm! Und das soll so eigentlich nicht sein!

Eventuell könnte es funktionieren! Da die MainForm ja eh im Systray ist wenn die andere Form erscheint!

Hat noch irgendjemand eine idee?

_________________
Wenn der Computer mit 0100101001010 Arbeitet ist ok,
aber wenn er mit 110 anfängt mach ich ihn kaputt!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 22.05.05 08:48 
ups vertippt. es muss
ausblenden Delphi-Quelltext
1:
if isiconic (application.handle) then					

heissen

_________________
In the beginning was the word.
And the word was content-type: text/plain.