Für alle die es interessiert...
Hab den source mal an meine Bedürfnisse angepasst und siehe da, es funktioniert. Ist vielleicht für Anfänger wie mich interessant um den Umgang mit Trayicons zu lernen.
Es wird eine kleine analoge Uhr im SystemTray dargestellt. Die Anzeige wird jede Sekunde aktualisiert. Wer den Sekundenzeiger sehen will, muß das Semikolon vor dem Line-Befehl entfernen

Nochmals Danke für die Hilfe!
Code: Alles auswählen
Global Dim secx.l(60)
Global Dim secy.l(60)
Global Dim minx.l(60)
Global Dim miny.l(60)
Global Dim hrsx.l(60)
Global Dim hrsy.l(60)
Procedure LowResTimer(num,time)
SetTimer_(WindowID(0),num,time,0)
EndProcedure
Procedure.l modulo(x,y)
ProcedureReturn x-(x/y)*y
EndProcedure
Procedure.l IconCreate(Icon.l, image.l, mask.l)
Protected *Bitmap.Long
If CreateImage(Icon, ImageWidth(image), ImageHeight(image))
*Bitmap = IsImage(Icon)
DeleteObject_(*Bitmap\l)
NewIcon.ICONINFO
NewIcon\fIcon = #True
NewIcon\hbmMask = ImageID(mask)
NewIcon\hbmColor = ImageID(image)
*Bitmap\l = CreateIconIndirect_(@NewIcon)
ProcedureReturn ImageID(Icon)
EndIf
ProcedureReturn 0
EndProcedure
Procedure CreateSystrayIcon()
h.l=modulo(Hour(Date()),12)*5+(Minute(Date())/12)
m.l=Minute(Date()): s.l=Second(Date())
If StartDrawing(ImageOutput(1))
DrawImage(ImageID(0),0,0)
LineXY(7,7,hrsx(h),hrsy(h),RGB(0,0,0))
LineXY(7,7,minx(m),miny(m),RGB(0,0,0))
;LineXY(7,7,secx(s),secy(s),RGB(255,0,0))
StopDrawing()
EndIf
If StartDrawing(WindowOutput(0))
DrawImage(ImageID(1),50,20,64,64)
StopDrawing()
EndIf
IconCreate(20,1,1)
SetGadgetState(0,ImageID(1))
EndProcedure
;Hier wird ein Ziffernblatt als Hintergrund für die Uhr geladen (Bitte anpassen)
LoadImage(0,"Z:\Programmierung\PureBasic V4.2\Projekte\Analoguhr\main.bmp")
CreateImage(1,16,16,32)
;Erstellen der Koordinaten für die Zeiger
radius.l=8: p.f=3.141594
For i=0 To 59
secx(i)=7+Sin(p)*radius*0.8 : secy(i)=7+Cos(p)*radius*0.8
minx(i)=7+Sin(p)*radius*0.65: miny(i)=7+Cos(p)*radius*0.65
hrsx(i)=7+Sin(p)*radius*0.5 : hrsy(i)=7+Cos(p)*radius*0.5
p-0.1047198
Next
If OpenWindow(0, 100, 150, 300, 100, "PureBasic - SysTray Example", #PB_Window_SystemMenu)
If CreateGadgetList(WindowID(0))
ImageGadget(0,20,20,16,16,0)
EndIf
CreateSystrayIcon()
AddSysTrayIcon(1, WindowID(0), ImageID(20))
LowResTimer(1,1000)
Repeat
Event = WindowEvent()
Select Event
Case #WM_TIMER
Select EventwParam()
Case 1
CreateSystrayIcon()
ChangeSysTrayIcon(1,ImageID(20))
Debug "CHANGED"
EndSelect
EndSelect
Until Event = #PB_Event_CloseWindow
EndIf