NextPrevUpTopContentsIndex

choice-selected-item-p

Function
Summary

Checks if an item is currently selected in a choice.

Package

capi

Signature

choice-selected-item-p choice item

Description

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.

Example
(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

Now click on another item.

(capi:choice-selected-item-p list 'c)
=>
nil
See also

choice
collection


LispWorks CAPI Reference Manual - 25 Jul 2006

NextPrevUpTopContentsIndex