![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395248x1.png)
10
Most XView procedures you call are in the libraries pxview, xview, and X11. To compile an XView program, link the libraries, in order. For example:
hostname% pc my_pascal.p
The header files define the necessary data types, constants, and external procedures necessary to write programs using the XView interface with Pascal.
NamesThe names of the header file are the same as the XView C language header files with the .h extension changed to _p.h. For example, the Pascal header file corresponding to the XView file panel.h is named panel_p.h. Other header files are canvas_p.h, text_p.h, and so on.
In addition to the header files corresponding to the XView headers, there is an another one, stddefs_p.h.
This file defines some basic types that are used by most of the other Pascal XView header files, and is included by the header files that need it.
UsageTo use header files with Pascal, put in include lines for any other header files you need.
Attribute ProceduresEach class of objects has its own set of attributes. Each attribute has a predefined (default) value. For example, for the class of scrollbars, there is a width and a color.
The standard C interface to XView defines two routines, xv_get() and
xv_set(), which get and set attributes of XView objects. These routines take an arbitrary number and type of parameters and return various types, depending on its arguments.
224 | Pascal 4.0 User’s Guide |