returns the currently selected items in a choice as a list of the items.
returns the currently selected items in a choice as a list of the items. A
method is provided as a means of setting the currently selected items. Note that the items are compared by
- see collection for details.
In the case of
choices, it is usually easier to use the complementary function choice-selected-item, which returns the selected item as its result.
First we set up a
choice -- in this case, a list panel.
(setq list (capi:contain
:items '(a b c d e)
:visible-min-height '(:character 5)
:selection '(1 3))))
The following code line returns the selections of the list.
The selections of the list panel can be changed and redisplayed using the following code.
list #'(setf capi:choice-selected-items)
'(a c e) list)
LispWorks CAPI Reference Manual - 25 Jul 2006