OpenWindow3D()

Syntax

Result = OpenWindow3D(#Window3D, x, y, InnerWidth, InnerHeight, Title$ [, Flags])
Description
Opens a new window on the current screen according to the specified parameters. If #PB_Any is used as '#Window3D' parameter, the new window number will be returned as 'Result'.

The new window becomes the active window, it's not needed to use SetActiveWindow3D() (unless the window is created as invisible). If the 'Result' is 0, the window can't be opened.

'InnerWidth' and 'InnerHeight' specify the required client area (without borders and window decorations). 'x' and 'y' specify the initial position of the window. (unless one of the center flags is used.) If one of them is #PB_Ignore, the OS will choose a position for the window.

Possible flags are:
  #PB_Window3D_SizeGadget : Adds the sizeable feature to a window.
  #PB_Window3D_Invisible  : Creates the window but don't display it.
  #PB_Window3D_BorderLess : Creates a window without any borders.
All possible events in a window are handled with WindowEvent3D().

Supported OS

All

<- IsWindow3D() - Window3D Index - ResizeWindow3D() ->