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
This call to xv_get() returns TRUE if row i is selected. To return the first selected row, use
PANEL_LIST_FIRST_SELECTED as follows:
int first_selected;
first_selected = (int)xv_get(list_item, PANEL_LIST_FIRST_SELECTED);
PANEL_LIST_NEXT_SELECTED
returns the next selected row after a specified row. This attri-
bute takes a single integer argument representing the row to start from. If no row is selected
following the specified row, PANEL_LIST_NEXT_SELECTED returns -1.
7.11.4 List Notification
The procedure specified via the attribute PANEL_NOTIFY_PROC is called when a row is se-
lected, de-selected, added, or deleted. List notify procedures are passed the following: the
list item, the string indicating the label of the item being acted upon, any client data associat-
ed with the list entry, a parameter indicating the action being taken, the event which caused
notification, and the row number of the row being operated on. The form of the procedure is:
int
list_notify_proc(item, string, client_data, op, event, row)
Panel_item item; /* panel list item */
char *string;
Xv_opaque client_data;
Panel_list_op op;
Event *event;
int row; /* row number */
item is the panel list item that contains the row that was acted upon. The string parame-
ter is the label of the row. If there is no string associated with the row, the parameter is NULL.
If the row contains both a string and an image, then the string is passed as ...
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