Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgentreesetselindexes.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgentreesetselindexes.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgentreesetselindexes.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgentreesetselindexes.html on line 8

PtGenTreeSetSelIndexes()

Set the selection indexes

Synopsis:

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

Description:

This function sets the selection indexes. It assumes that buffer points to a sorted array of indexes. The first item in the 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.

When the selection mode is Pt_SELECTION_MODE_RANGE, only the first index and the count are used.

Returns:

The number of items actually selected.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenTree


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgentreesetselindexes.html on line 93

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgentreesetselindexes.html on line 93