1XmListGetSelectedPos(library call)          XmListGetSelectedPos(library call)
2
3
4

NAME

6       XmListGetSelectedPos  —  A  List  function that returns the position of
7       every selected item in the list
8

SYNOPSIS

10       #include <Xm/List.h>
11       Boolean XmListGetSelectedPos(
12       Widget widget,
13       int **position_list,
14       int *position_count);
15

DESCRIPTION

17       This routine is obsolete. It is replaced by calling XtGetValues for the
18       List   resources   XmNselectedPositions  and  XmNselectedPositionCount.
19       XmListGetSelectedPos is a Boolean function that returns an array of the
20       positions of the selected items in a List.
21
22       widget    Specifies the ID of the List widget.
23
24       position_list
25                 Returns  an  array  of the positions of the selected items in
26                 the List.  The position of the first item in the list  is  1;
27                 the  position  of  the second item is 2; and so on.  When the
28                 return value is True, XmListGetSelectedPos  allocates  memory
29                 for  this  array.  The caller is responsible for freeing this
30                 memory.  The caller can recover the allocated memory by call‐
31                 ing XtFree.
32
33       position_count
34                 Returns the number of elements in the position_list.
35
36       For  a  complete  definition  of List and its associated resources, see
37       XmList(3).
38

RETURN

40       Returns True if the list has any selected items, and False if  it  does
41       not.
42
44       XmList(3).
45
46
47
48                                            XmListGetSelectedPos(library call)
Impressum