OpenScreenWindow()

Syntax

Result = OpenScreenWindow(#ScreenWindow, x, y, InnerWidth, InnerHeight, Title$ [, Flags])
Description
Opens a new window on the current screen according to the specified parameters. The new window becomes the active window. All possible events in a window are handled with ScreenWindowEvent().

Parameters

#ScreenWindow A number to identify the new window. #PB_Any can be used to auto-generate this number.
x, y The initial position of the window on the screen (unless one of the center flags is used).
InnerWidth, InnerHeight The initial size of the client area of the window (without borders and window decorations).
Flags (optional) It can be a combination of the following values:
  #PB_ScreenWindow_SizeGadget : Adds the sizeable feature to a window.
  #PB_ScreenWindow_Invisible  : Creates the window but doesn't display it.
  #PB_ScreenWindow_BorderLess : Creates a window without any borders.

Return value

Nonzero if the window has been successfully opened, zero otherwise.

See Also

CloseScreenWindow(), ScreenWindowEvent()

Supported OS

All

<- OpenScreenGadgetList() - ScreenGadget Index - OptionScreenGadget() ->