spnSetSpcChecked: Set checked state of spec(s) in the top tab/spec-tree

Description Usage Arguments Value Author(s) See Also Examples

Description

Set Spc spectrum of Grp spec-group checkbox(es) to checked/unchecked state. If Spc="*" then all of specs in Grp group are set. If Grp="*" then all of spectra in all groups are set to Checked (in that case Spc is ignored).

Usage

1
spnSetSpcChecked(Grp,Spc,Checked)

Arguments

Grp

- the name(character string) or the index(integer) of the group; 0 - active group; "*" - all groups

Spc

- the name(character string) or the index(integer) of spec; 0 - selected spec; "*" - all specs.

Checked

- logical, the state which will be set

Value

spnSetSpcChecked none

Author(s)

Teodor Krastev

See Also

spnGetSpcChecked, spnActGrp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
# Initialization of Spectrino
spnNew() 

# generate test set
spnOpenTree("<test>")

# check just one
spnSetSpcChecked(2,3,TRUE)

# all the spec from second group to OFF 
spnSetSpcChecked(2,"*",FALSE)

# all the specs in all groups to ON
spnSetSpcChecked("*","*",TRUE)

# Release of Spectrino
#spnFree(TRUE)

spectrino documentation built on June 4, 2019, 1:02 a.m.