| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) | 
Get the indexes of the selected items
unsigned short *PtGenListGetSelIndexes( 
                    PtWidget_t *widget, 
                    unsigned short *buffer );
This function fills the given buffer with the indexes of the currently selected items.
If buffer is NULL, the function will allocate a buffer using malloc(), and the buffer will be NULL-terminated (or zero-terminated). It's the caller's responsibility to free the buffer when it's no longer needed.
If buffer isn't NULL, the function adds a NULL to the end only if there are no selected items.
A pointer to the buffer.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) |