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

Selection


Description

The selection model determines how elements are selected from a group of elements. OSF/Motif compliant systems must support the five different selection models. The five selection models are as follows:

Single Selection
Used to select a single element in a collection. Clicking BSelect on a deselected element selects it and deselects the previously selected element in the collection. Single selection is described in the section entitled Mouse-Based Single Selection.
Browse Selection
Used to allow browsing through single selection collections. Browse selection is also used to select a single element of a collection. Browse selection works just like single selection, but additionally allows the user to browse through the elements by dragging BSelect through the elements in the collection. Browse select highlights each element as it is traversed, and gives the application an opportunity to provide information about each element as it is highlighted. Releasing BSelect on an element selects it and deselects the previously selected element. Browse selection is described in the section entitled Mouse-Based Browse Selection.
Multiple Selection
Used to select or deselect multiple elements of a collection. Clicking BSelect on an unselected element adds that element to the current selection. Clicking BSelect on a selected element removes that element from the current selection. Multiple selection is described in the section entitled Mouse-Based Multiple Selection.
Range Selection
Used to select a contiguous range of elements in a collection. Clicking BSelect on an element selects the single element and deselects any previous selection. BSelect Motion over a range of elements selects all the elements within the range and deselects any previous selection. Range selection is described in the section entitled Mouse-Based Range Selection.
Discontiguous Selection
Used for selecting multiple discontiguous ranges of elements in a collection. Clicking or dragging BSelect operates the same as for range selection. Discontiguous selection also allows BSelect to be used to add new selection ranges to or remove selection ranges from the selection. Discontiguous selection is described in the section entitled Mouse-Based Discontiguous Selection.

Related Information

See Selection for more information about the selection models.