OpenWindow()
Syntax
Result = OpenWindow(#Window, x, y, InnerWidth, InnerHeight, Flags, Title$ [, ParentWindowID])Description
Opens a new window according to the specified parameters. If #PB_Any is used as '#Window' parameter, the new window identifier will be returned as 'Result'. The new window becomes the used window. You don't need to use the UseWindow() command to set it. If the 'Result' is 0, the window can't be opened. 'InnerWidth' and 'InnerHeight' specify the required client area (without borders and window decorations), for Windows XP, AmigaOS and Linux skinning compatibility. 'ParentWindowID' is an optional parameter which specify on which window the new window belongs to. 'ParentWindowID' value can be easily obtained with WindowID().
Possible flags are:#PB_Window_SystemMenu : Enables the system menu on the window title bar. #PB_Window_MinimizeGadget: Adds the minimize gadget to the window title bar. #PB_Window_System is automatically added. #PB_Window_MaximizeGadget: Adds the maximize gadget to the window title bar. #PB_Window_System is automatically added. #PB_Window_SizeGadget : Adds the sizeable feature to a window. #PB_Window_Invisible : Creates the window but don't display. Not supported on AmigaOS. #PB_Window_TitleBar : Creates a window with a titlebar. #PB_Window_BorderLess : Creates a window without any borders. #PB_Window_ScreenCentered: Centers the window in the middle of the screen. x,y parameters are ignored. #PB_Window_WindowCentered: Centers the window in the middle of the parent window. x,y parameters are ignored.All possible events in a window are handled with the WindowEvent() and WaitWindowEvent() commands. For special situations callbacks are used, see description at SetWindowCallback().
Supported OS
All