Flicker in example code from help file
Posted: Tue Sep 29, 2015 8:43 pm
This example in the help file is flickering heavily for me.... (Windows 8.1, x86)
Are there good / simple ways to fix that?
Code: Select all
If OpenWindow(0, 0, 0, 300, 30, "Window mouse monitor", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(0, 10, 6, 200, 20, "")
Repeat
Event = WaitWindowEvent(20) ; return at least every 20ms for an update
SetGadgetText(0, "Window mouse position: " + Str(WindowMouseX(0)) + "," + Str(WindowMouseY(0)))
Until Event = #PB_Event_CloseWindow
EndIf