The function choice-selected-item-p
is the predicate for whether an item
item
of the choice
choice
is selected.
Note that the items are compared by choice 's test-function - see collection for details.
(setq list
(capi:contain
(make-instance 'capi:list-panel
:items '(a b c d)
:selection 2
:visible-min-height
'(:character 4))))
(capi:choice-selected-item-p list 'c)
=>
t
(capi:choice-selected-item-p list 'c)
=>
nil
CAPI User Guide and Reference Manual (Windows version) - 25 Feb 2015