Page 1 of 1
[Implemented] Maximized option for OpenWindow()
Posted: Tue Jun 03, 2003 7:37 pm
by tony
Add one more option to OpenWindow() so that you can have it maximized, minized, or normal.
I know it's the WinAPI but could be neat
Tony
Posted: Wed Jul 02, 2003 11:27 pm
by Tipperton
Simple enough to do...
Just change this
Code: Select all
OpenWindow(#Window, x, y, InnerWidth, InnerHeight, Flags, Title$ [, ParentWindowID])
to this for maximized
Code: Select all
OpenWindow(#Window, x, y, InnerWidth, InnerHeight, Flags | $1000000, Title$ [, ParentWindowID])
or to this for minimized
Code: Select all
OpenWindow(#Window, x, y, InnerWidth, InnerHeight, Flags | $20000000, Title$ [, ParentWindowID])
Viola!

Posted: Thu Jul 03, 2003 9:37 pm
by Andre
So its only needed to add two new PB constants....

Posted: Thu Jul 03, 2003 10:27 pm
by Tipperton
Andre wrote:So its only needed to add two new PB constants....

Yup!
Code: Select all
#PB_Window_WindowMaximized = $1000000
#PB_Window_WindowMinimized = $20000000
If you want to follow the current constants naming convention.