![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395250x1.png)
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
•The routines ending in s return a pointer to a static
•The versions without the s return a dynamically allocated list, which should be passed to xv_destroy() when you are finished with it.
HandlesWhen 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 TypesEach 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 |