However, the GetGadgetColor always returns -1.
Can anybody have alternative to overcome this?
I have tried to GetWindowColor, but with the same result.
WHandle = OpenWindow(#PB_Any, 0, 0, 200, 100, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If (Not WHandle) : End : EndIf
If (Not CreateGadgetList(WindowID(WHandle)) ) : End : EndIf
hBtn = ButtonGadget(#PB_Any, 10, 10, 10, 24, "OK")
Debug GetGadgetColor(hBtn, #PB_Gadget_BackColor)
Repeat : Forever


