Can someone explain to me if it's normal (and if so, why?) that I get -2 as result for X window position after resize window in the code below?
Code: Select all
; PB 6.10 - Windows x64 - DPI 125%
OpenWindow(0,0,0,100,200,"test",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_SizeGadget|#PB_Window_Invisible|#PB_Window_TitleBar|#PB_Window_ScreenCentered)
Debug "Position before resize :"
Debug " PosX : "+WindowX(0)+" - PosY : "+WindowY(0)
;
ResizeWindow(0,0,0,336,508)
Debug "Position after resize :"
Debug " PosX : "+WindowX(0)+" - PosY : "+WindowY(0)
;
HideWindow(0,#False)
CallDebugger
CloseWindow(0)
;

Thanks.



