HP SunSoft Pascal 4.0 Uživatelský manuál Strana 250

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 333
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 249
226 Pascal 4.0 Users Guide
10
Example calls are:
The lists for Attr_avlist are created by functions that have the following
names:
attr_create_list_n()
attr_create_list_ns()
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.
Here,mymenu is an object of
type XV_object.
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);
Zobrazit stránku 249
1 2 ... 245 246 247 248 249 250 251 252 253 254 255 ... 332 333

Komentáře k této Příručce

Žádné komentáře