Class List |
# This component is for selecting one string from a list of several. When a button is pressed a list appears (possibly with a scroll bar) from which one item can be selected. An event is generated whenever an item is selected from the list. @example @ l := List() @ l$set_selection_list(["Red", "Green", "Yellow", "Blue", "Orange"]) @ l$set_size(120) @ l$set_pos(100, 100) @ l$set_selection(2) # Green will be the first selection @ self$add(l)
Details |
Constructor |
Methods: |
# The given string will always appear in the text part of the component, rather than the currently selected item.
# Set the selected item. @param x An index into the list of selectable items.
Fields: |