3.26  list-box%

Implements: list-control<%>

A list box allows the user to select one or more string items from a scrolling list. A list box is either a single-selection control (if an item is selected, the previous selection is removed) or a multiple-selection control (clicking an item toggles the item on or off independently of other selections).

Whenever the user changes the selection in a list box, the list box's callback procedure is called. A callback procedure is provided as an initialization argument when each list box is created.

List box items are indexed from 0.

See also choice%.

Methods
    append
    delete
    get-data
    get-first-visible-item
    get-selections
    is-selected?
    number-of-visible-items
    select
    set
    set-data
    set-first-visible-item
    set-string

All Methods
    accept-drop-files from window<%>
    append from list-box%
        overrides append from list-control<%>
    clear from list-control<%>
    client->screen from window<%>
    command from control<%>
    delete from list-box%
    enable from window<%>
    find-string from list-control<%>
    focus from window<%>
    get-client-size from window<%>
    get-cursor from window<%>
    get-data from list-box%
    get-first-visible-item from list-box%
    get-graphical-min-size from area<%>
    get-height from window<%>
    get-label from window<%>
    get-number from list-control<%>
    get-parent from area<%>
    get-plain-label from window<%>
    get-selection from list-control<%>
    get-selections from list-box%
    get-size from window<%>
    get-string from list-control<%>
    get-string-selection from list-control<%>
    get-top-level-window from area<%>
    get-width from window<%>
    get-x from window<%>
    get-y from window<%>
    has-focus? from window<%>
    horiz-margin from subarea<%>
    is-enabled? from window<%>
    is-selected? from list-box%
    is-shown? from window<%>
    min-height from area<%>
    min-width from area<%>
    number-of-visible-items from list-box%
    on-drop-file from window<%>
    on-focus from window<%>
    on-move from window<%>
    on-size from window<%>
    on-subwindow-char from window<%>
    on-subwindow-event from window<%>
    on-superwindow-enable from window<%>
    on-superwindow-show from window<%>
    popup-menu from window<%>
    refresh from window<%>
    screen->client from window<%>
    select from list-box%
    set from list-box%
    set-cursor from window<%>
    set-data from list-box%
    set-first-visible-item from list-box%
    set-label from window<%>
    set-selection from list-control<%>
    set-string from list-box%
    set-string-selection from list-control<%>
    show from window<%>
    stretchable-height from area<%>
    stretchable-width from area<%>
    vert-margin from subarea<%>