[Previous] [Contents] [Index] [Next]

PtGenListSetSelIndexes()

Set the selection indexes

Synopsis:

int PtGenListSetSelIndexes( 
        PtWidget_t *widget,
        const unsigned short *buffer 
        int count );

Description:

This function lets you set the selection indexes. It assumes that buffer points to a sorted array of indexes. 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.


Note: In Pt_SELECTION_MODE_RANGE mode, only the first index and count are used.

Returns:

The number of items actually selected.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

[Previous] [Contents] [Index] [Next]