
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 ...