- If you want to include a list box in an application, then insert a
list-box variable, assign to it a
ListBox instance, and
instantiate the following pattern in the createViews definition:
the list box owner: the view manager.
the list box when: #getContents
perform: initialization method
the list box when: #select
perform: action method.
- If you want to define a list-box initialization method, then
instantiate the following pattern for a view-manager method:
initialization key word theListBox
theListBox contents: an ordered collection of strings.
- If you want to define a list-box action method, then instantiate the
following pattern for a view-manager method, noting that the
selection method answers an integer index:
selector theListBox
... (theListBox selection) ...