Page 1 of 1

Resize window

Posted: Wed Mar 05, 2025 5:01 pm
by rndrei
Why doesn't the window size not work with a mouse?

Code: Select all

Enumeration
  #WINDOW_MAIN
EndEnumeration
OpenWindow(#WINDOW_MAIN, 0, 0, 300, 200, "Testing GUI PureBasic", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget |#PB_Window_MaximizeGadget | #PB_Window_WindowCentered | #PB_Window_SizeGadget)
Repeat
  Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow 

Re: Resize window

Posted: Wed Mar 05, 2025 5:30 pm
by Axolotl
Works perfect, here.
The only thing I can see is better use

Code: Select all

#PB_Window_ScreenCentered 
instead of

Code: Select all

#PB_Window_WindowCentered
if you want the window centered to the desktop.

Re: Resize window

Posted: Thu Mar 06, 2025 8:12 am
by rndrei
Yes, everything works! The problem was in the OS. The topic can be deleted.