Page 1 of 1

[CLOSED/BUG] Issue with ResizeWindow?

Posted: Mon May 06, 2024 3:34 am
by boddhi
Hello,

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)
;
Image
 
Thanks.

Re: Issue with ResizeWindow?

Posted: Mon May 06, 2024 3:48 am
by Paul
https://www.purebasic.fr/english/viewtopic.php?t=83939

Seems to have something to do with the #PB_Window_SizeGadget flag and also depends on Scaling.
Really hope Fred looks into this cause it's really a pain to have to deal with.

Re: Issue with ResizeWindow?

Posted: Mon May 06, 2024 4:00 am
by boddhi
Thanks Paul, I don't see your post about that in bugs report section.