Page 1 of 1

Enhancement to ResizeWindow()

Posted: Mon Aug 29, 2005 7:39 pm
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.

Posted: Mon Sep 05, 2005 6:57 am
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