![]() | 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_groupto select.
- 1 Occurrence is already selected.
sm_selectlets you select an occurrence within a selection group. If the group'snum_of_selectionsproperty 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.