Enhancement to ResizeWindow()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Enhancement to ResizeWindow()

Post by akj »

Currently the syntax is: ResizeWindow(Width, Height)

I would like it to be: ResizeWindow(Width, Height [,Flags])
where flags is one of:
#PB_Window_ScreenCentered
#PB_Window_WindowCentered

This would give a simple way of centering a window when resizing it.
Anthony Jordan
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Post by nco2k »

hmm i guess this would be more usefull/logical in MoveWindow().

Code: Select all

ResizeWindow(640, 480)
MoveWindow(0, 0, #PB_Window_ScreenCentered)
c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Post Reply