GrNewWindow()

Name

GrNewWindow() -- Create a new window

Synopsis

GR_WINDOW_ID GrNewWindow ( GR_WINDOW_ID parent , GR_COORD x , GR_COORD y , GR_COORD width , GR_COORD height , GR_COORD bordersize , GR_COLOR background , GR_COLOR bordercolor );

Description

This function will create a new window with the specified parent window and the specified window attributes.

Note

This function has been depreciated. You should use GrNewWindowEx() instead since it works better in the presence of a window manager.

Parameters

TypeNameDescription
GR_WINDOW_IDparentThe parent of window of the window that will be created.
GR_COORDxThe X position of the new window with respect to its parent window.
GR_COORDyThe Y position of the new window with respect to its parent window.
GR_COORDwidthThe width (in pixels) of the new window.
GR_COORDheightThe hieght (in pixels) of the new window.
GR_COORDbordersizeThe width in pixels of the window border.
GR_COLORbackgroundThe color of the window background.
GR_COLORbordercolorhe color of the window border.

Returns

The ID of the newly created window or 0 in case of failure.

See Also

GrDestroyWindow(), GrNewWindowEx(), GrNewInputWindow(), GrMapWindow(), GrRaiseWindow(), GrMoveWindow(), GrResizeWindow(), GrReparentWindow(), GrSetBorderColor(), GrClearWindow(), GrGetWindowInfo(), Window Functions.