Set the selection indexes
int PtGenListSetSelIndexes( PtWidget_t *widget, const unsigned short *buffer int count );
This function lets you set the selection indexes for the given PtGenList. It assumes that buffer points to a sorted array of indexes. The first item in the list widget has an index of 1, not 0.
The function returns the number of items that have been actually selected, which may be smaller than count if the array isn't sorted or contains duplicate or out-of-range indexes.
|In Pt_SELECTION_MODE_RANGE mode, only the first index and count are used. In Pt_SELECTION_MODE_SINGLE mode, only the first index is used; if count is greater than 1, it's treated as 1.|
The number of items actually selected.