Ich steh' grad' auf 'm Schlauch!
Entweder ist das ein Bug oder ich mach' irgendwas falsch.
Code: Alles auswählen
If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
ButtonImageGadget(1,10,10,100,20,LoadImage(1,"Test.bmp",0),0)
EndIf
Debug GetGadgetAttribute(1,#PB_Button_Image)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Wieso funktioniert das nicht?