ich habe das originale Beispiel aus der PB-Hilfe ausprobiert. Aber ich bekomme kein Icon in die StatusBar. Hab zur Kontrolle ein ImageGadget eingebaut, hier kommt das ICon. Ist das ein Bug?
Code: Alles auswählen
If OpenWindow(0, 0, 0, 340, 50, "StatusBarIcon", #PB_Window_SystemMenu|#PB_Window_ScreenCentered|#PB_Window_SizeGadget)
LoadImage(0, "D:\PWB_TB_kno.ico")
CreateGadgetList(WindowID(0))
ImageGadget(11,0,0,20,20,ImageID(0)) ; Hier kommt das Bild
If CreateStatusBar(0, WindowID(0))
AddStatusBarField(120)
AddStatusBarField(170)
EndIf
StatusBarText(0, 0, "Area normal")
StatusBarText(0, 1, "Area rechts & erhoben", #PB_StatusBar_Right|#PB_StatusBar_Raised)
;If LoadImage(0, "D:\PWB_TB_kno.ico") ; ändern Sie Pfad/Dateiname auf Ihr eigenes 16x16 Pixel Bild
StatusBarIcon(0, 0, ImageID(0)) ; Hier kommt das Bild nicht
;StatusBarIcon(0, 1, ImageID(0))
;EndIf
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf