makegraphwin

BAP Online Manuals : Library Reference : Library by Name : makegraphwin
Previous: load_compiler
Next: makewindow

6.2.81. makegraphwin

opens a new graphics window

SYNOPSIS

INCLUDE 'graphlib.h'
makegraphwin(graphwin,100,100,"Graphics")

SYNTAX

makegraphwin(Handle,SizeX,SizeY,TitleString) (x,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(SizeX) (i) Horizontal size in virtual units.
integer(SizeY) (i) Vertical size in virtual units.
string(TitleString) (i) Title of the window.

DESCRIPTION

This predicate opens a new graphics window on the screen. The SizeX and SizeY parameters determine the 'logical size' of the window, which is the extent of the visible coordinate system. If the user resizes the window on screen, this 'size' is not changed, the displayed figure is rescaled to fit into the window (with aspect ratio 1:1).

EXAMPLE

makegraphwin(Handle,100,100,"Graphic Demo"),
filledpolygon(Handle, 

removewindow(Handle,1),!.

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

enddraw , filledellipse , filledpolygon


BAP Online Manuals : Library Reference : Library by Name : makegraphwin
Previous: load_compiler
Next: makewindow