My TextGadget IDs: #WORKING_wind_Text_Title and #WORKING_wind_Text_subTitle
The text characters overlap each other every time the Thread has an event.
I update this text by using SetGadgetText() in the Thread.
How to fix this ?
Code: Select all
Procedure WinProc(hWnd, Msg, wParam, lParam)
Select Msg
Case #WM_CTLCOLORSTATIC
Select lParam
Case GadgetID(#WORKING_wind_Text_Title)
SetBkMode_(wParam, #TRANSPARENT)
SetTextColor_(wParam, #Blue)
ProcedureReturn GetStockObject_(#HOLLOW_BRUSH)
Case GadgetID(#WORKING_wind_Text_subTitle)
SetBkMode_(wParam, #TRANSPARENT)
SetTextColor_(wParam, #Red)
ProcedureReturn GetStockObject_(#HOLLOW_BRUSH)
EndSelect
EndSelect
ProcedureReturn #PB_ProcessPureBasicEvents
EndProcedure
...............
SetWindowCallback(@WinProc(), #my_window, #PB_Window_NoChildEvents)
.................



