makewindow
Previous: makegraphwin
Next: member
6.2.82. makewindow
opens a new window for input and output
SYNOPSIS
INCLUDE 'winlib.h' makewindow(newwin,5,5,10,20,"New Window")
SYNTAX
makewindow(Handle,Yleft,Ytop,Width,Height,TitleString) (x,i,i,i,i,i)
ARGUMENTS
handle(Handle) (i) Virtual file handle to be associated with the window.
void(Handle) (o) Real window handle returned by the host.
integer(Yleft) (i) Y position of upper left corner of the window.
integer(Ytop) (i) X position of upper left corner of the window.
integer(Width) (i) Width of the window.
integer(Height) (i) Height of the window.
string(TitleString) (i) Title of the window.
DESCRIPTION
This opens a new window on the screen. The current input and output streams are set to this window. Also it gets the input focus on some systems. The Width and Height parameters determine the logical size of the window, e.g. Width determines how many characters fit into a line. Yleft and Ytop specify the upper left corner of the window. NOTE: on some window systems the window manager ignores these values.
EXAMPLE
makewindow(new,5,5,20,5,"Hello World"), write("How are you?"),nl, readln(_), removewindow.
ERRORS
No runtime errors.
LAYERS
prolog-process, client-server, object
RELATED PREDICATES
removewindow , closefiles , shiftwindow , gotowindow , clearwindow , cursor , wintitle
BAP Online Manuals : Library Reference : Library by Name : makewindow
Previous: makegraphwin
Next: member