Programming Guide |
Selects an occurrence in a selection group
int sm_select(char *selection_group, int group_occurrence);
selection_group
- The name of a selection group.
group_occurrence
- The number of the occurrence in
selection_group
to select.
- 1 Occurrence is already selected.
sm_select
lets you select an occurrence within a selection group. If the group'snum_of_selections
property is set toPV_1
(allows only one selection), Panther first deselects the current selection before it selectsgroup_occurrence
. For more information about selection widgets, refer to Chapter 20, "Selection Widgets," in Using the Editors.To deselect an occurrence, call sm_deselect.