[CLOSED/BUG] Issue with ResizeWindow?

Just starting out? Need help? Post your questions and find answers here.
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

[CLOSED/BUG] Issue with ResizeWindow?

Post 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.
Last edited by boddhi on Mon May 06, 2024 4:02 am, edited 1 time in total.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: Issue with ResizeWindow?

Post 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.
Image Image
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Issue with ResizeWindow?

Post by boddhi »

Thanks Paul, I don't see your post about that in bugs report section.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Post Reply