As soon as you activate WinXP Style on your pc and activate the compiler option xp-skin the fontcolor will be black
(well i guess it depends on the used winxp style, but at least it won't be the wished white color).
Any ideas ?
This only happens to checkboxes btw...
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
SetBkMode_(wParam,#TRANSPARENT)
SetTextColor_(wParam, $FFFFFF)
Result = Brush
EndSelect
ProcedureReturn Result
EndProcedure
SetWindowCallback(@myCallback())
CreateGadgetList(WindowID())
CheckBoxGadget(4, 10, 10,100, 20, "Test")
Repeat
Until WaitWindowEvent() = #PB_EventCloseWindow