Autor Beitrag
hassedelphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WIN XP
D7 Enterprise
BeitragVerfasst: Sa 30.08.03 12:29 
hi

ich hab ein prog, welches ein tray icon in der tray bar hat. wenn ich auf das icon klicke, wird das mainfenster angezeigt, welches mir einen countdown anzeigt. wie kann mir dieser countdown gleich im tray icon angezeigt werden (ähnlich uhr).

_________________
you're not be able to help, that you're an human
FeG
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Win XP Home, SuSE Linux 8.2 Prof
D3 Prof, D7 Prof
BeitragVerfasst: Sa 30.08.03 15:17 
Hallo,

du deklarierst in der entsprechenden procedure wieder eine TNOTIFYICONDATA-Variable, übergibst ihr das gewünschte Icon (halt mit nem Countdown, oder so...) und sendest das dingen mit
ausblenden Delphi-Quelltext
1:
Shell_NotifyIcon(NIM_MODIFY, @Variable)					


Müsste eigentlich klappen... vielleicht auch was anderes als "NIM_MODIFY", musste mal in der Shell_Api-Unit nachgucken...

MfG,
FeG
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 30.08.03 21:33 
Dann müsste er ja zig Icons für die Countdown-Sache machen. :? Ich glaube, es wäre eleganter, das jeweilige Countdown-Icon direkt im Programm zu erzeugen (s. PSDK -> CreateIcon, usw.).

Ansonsten hast du natürlich recht. Die Zuweisung des Icons erfolgt dann auf die von dir beschriebene Art.
FeG
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Win XP Home, SuSE Linux 8.2 Prof
D3 Prof, D7 Prof
BeitragVerfasst: Sa 30.08.03 22:50 
MathiasSimmack hat folgendes geschrieben:
Dann müsste er ja zig Icons für die Countdown-Sache machen. :?

Ich hab doch gar nicht behauptet, dass er die alle vorbereiten soll...

Ich hab nur gesagt, dass er ein Icon übergeben muss... Das sollte natürlich dynamisch erstellt werden... is erstmal egal, wie...

MfG,
FeG