Debug window not always in front when DPI aware executable
Posted: Mon Nov 27, 2023 12:07 am
When running code with Enable DPI Aware Executable selected in compiler options and a windowed screen the debug window will not remain "always on top" even it is set to. You can test this by running the following code with the "Enable DPI Aware Executable". I'm not actually sure what causes it but it's linked to my single 4K monitor, it only does it on that.
Code: Select all
ExamineDesktops()
Width = DesktopWidth(0)
Height = DesktopHeight(0)
InitSprite()
OpenWindow(0, 0, 0, Width, Height, "Test Debug", #PB_Window_Maximize | #PB_Window_BorderLess)
OpenWindowedScreen(WindowID(0), 0, 0, WindowWidth(0)*DesktopResolutionX(), WindowHeight(0)*DesktopResolutionY(), #False, 0, 0, #PB_Screen_WaitSynchronization)
Debug "Test"
InitKeyboard()
Repeat
Event = WindowEvent()
ExamineKeyboard()
Delay(20)
FlipBuffers()
Until Event = #PB_Event_CloseWindow Or KeyboardPushed(#PB_Key_Escape)