Skip to Main Content
Volume 7A: XView Programming Manual
book

Volume 7A: XView Programming Manual

by Dan Heller
October 1994
Intermediate to advanced content levelIntermediate to advanced
770 pages
22h 58m
English
O'Reilly Media, Inc.
Content preview from Volume 7A: XView Programming Manual
A handle to the new panel object is returned and stored in the variable panel. This handle
is not a pointer and does not contain any useful information about the object itself.
The next section goes into detail about the use of xv_set() and xv_get(). Chapter 3,
Creating XView Applications, discusses the use of xv_init(), xv_destroy(), and
xv_find().
2.2.2 Changing Object Attributes
The programmer uses the handle returned from the xv_create() function as a parameter
to the functions xv_get() and xv_set() to get and set attributes of the object.
panel = xv_create(...)
xv_set(panel, PANEL_LAYOUT, PANEL_HORIZONTAL, NULL);
Here, the handle to the panel (panel) is used to change a PANEL package attribute,
PANEL_LAYOUT, whose value is set to PANEL_HORIZONTAL. The attribute and value form an
attribute-value pair. The functions xv_create(), xv_destroy(), xv_find(),
xv_set(), and, to some extent, xv_get() use attribute-value pairs. The functions can
have any number of pairs associated with the function call. These variable argument lists are
always terminated by a
NULL pointer as the last argument in the list. Note that NULL, not the
constant 0 (zero), should be used as the terminating argument.
The effect of this function call is to change the layout of the panel from the previous value,
whatever it might be, to horizontal.
2.2.3 Types of Attributes
Attributes can be divided into three categories. Those that apply to all XView objects are
termed generic attributes. Attributes that are supported by many,
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Volume 6A: Motif Programming Manual

Volume 6A: Motif Programming Manual

David Brennan, Dan Heller, Paula Ferguson
Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization

Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization

Alejandro Terrazas, John Ostuni, Michael Barlow

Publisher Resources

ISBN: 9780937175873