Resize window

Linux specific forum
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 153
Joined: Thu Dec 28, 2023 9:04 pm

Resize window

Post 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 
Axolotl
Addict
Addict
Posts: 837
Joined: Wed Dec 31, 2008 3:36 pm

Re: Resize window

Post 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.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 153
Joined: Thu Dec 28, 2023 9:04 pm

Re: Resize window

Post by rndrei »

Yes, everything works! The problem was in the OS. The topic can be deleted.
Post Reply