names: attr_create_list_n() attr_create_list_ns()
The lists for

10

Here, mymenu is an object of type XV_object.

Example calls are:

mymenu := xv_create (NULL, MENU, 0); ncols := get_MENU_NCOLS (mymenu); set_MENU_NITEMS (mymenu, items); xv_find_l (mymenu, MENU,

attr_create_list_2s (MENU_DEFAULT,4)); xv_destroy (mymenu);

Attr_avlist are created by functions that have the following

The n indicates the number of arguments the routine accepts.

The number of arguments can be 1-16.

The routines ending in s return a pointer to a static attribute-value array, which is reused with each call to the static list routines.

The versions without the s return a dynamically allocated list, which should be passed to xv_destroy() when you are finished with it.

Handles

When you create an XView object, xv_create() returns a handle for that object. You pass this handle to the appropriate procedure for manipulating the object.

Data Types

Each XView object has its own specific data type. The name of an object’s data type always starts with a capital letter. For example, the data type for a scrollbar is Scrollbar. The standard list of these types is in the header files.

226

Pascal 4.0 User’s Guide