Important: The information in this document is obsolete and should not be used for new development.
LSetSelect
You can use theLSetSelect
procedure to select or deselect a cell.
PROCEDURE LSetSelect (setIt: Boolean; theCell: Cell; lHandle: ListHandle);
setIt
- A Boolean value that indicates whether the
LSetSelect
procedure should select or deselect the specified cell. SpecifyTRUE
to select the cell; specifyFALSE
to deselect the cell.theCell
- The cell to be selected or deselected.
lHandle
- The list containing the cell to be selected or deselected.
DESCRIPTION
IfsetIt
isTRUE
, then theLSetSelect
procedure selects the cell specified by thetheCell
parameter in the list specified bylHandle
. If the cell is already selected,LSetSelect
does nothing.If
setIt
isFALSE
, thenLSetSelect
deselects the cell specified bytheCell
. If the cell is already deselected,LSetSelect
does nothing.If a cell's selection status is changed and the cell is visible,
LSetSelect
redraws the cell.SPECIAL CONSIDERATIONS
You should not call theLSetSelect
procedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLSetSelect
procedure are
Trap macro Selector _Pack0 $005C SEE ALSO
For examples that change the items selected in a list, see "Working With List Selections" beginning on page 4-25.