
Not sure what's causing the problem but here's a quick "hack" if you can live with it for now. I'll take a closer look when I get a chance.

This disables the XP Theme for the OptionGadget and allows the color changes.
Code: Select all
OpenWindow(0,100,150,120,40,#PB_Window_SystemMenu,"")
Brush = CreateSolidBrush_($808080)
Procedure myCallback(WindowID, Message, wParam, lParam)
Shared Brush
Result = #PB_ProcessPureBasicEvents
Select Message
Case #WM_CTLCOLORSTATIC
Debug "HI"
SetBkMode_(wParam,#TRANSPARENT)
SetTextColor_(wParam, $FFFFFF)
Result = Brush
EndSelect
ProcedureReturn Result
EndProcedure
SetWindowCallback(@myCallback())
CreateGadgetList(WindowID())
CheckBoxGadget(4, 10, 10,100, 20, "Test")
;--> Disable XP Theme for the OptionGadget
If OSVersion() = #PB_OS_Windows_XP
OpenLibrary(0, "uxtheme.dll")
CallFunction(0, "SetWindowTheme", GadgetID(4), @" ", @" ")
CloseLibrary(0)
EndIf
Repeat
Until WaitWindowEvent() = #PB_EventCloseWindow