The LM_TextList class provides a scrollable list of text items. To create a new text list, you would use the following function:
Creates a new LM_TextList object that can then be added to a dialog or toolbar.
Return value (LM_TextList): the newly-created text list width (int): width in pixels height (int): height in pixels msg (int): the message value to send when the user clicks on an item in the listReturns the number of entries in the list.
Return value (int): the number of entries in the listReturns the string value of an item in the list.
Return value (string): the string value of an item in the list id (int): the number of the entry (starting with 0 for the first item)Adds a new text item to the list. The new item appears at the end of the list.
Return value: none label (string): the text string to add to the listAdds a new text item to the list. The new item is inserted alphabetically into the list.
Return value: none label (string): the text string to add to the listRemoves an item from the list.
Return value: none id (int): the number of the entry to remove (starting with 0 for the first item)Selects an item in the list.
Return value: none id (int): the number of the entry (starting with 0 for the first item)Selects an item in the list. Instead of selecting the item by number, the item that matches the supplied string is selected.
Return value (bool): true if the item exists and is selected, false if the item cannot be found label (string): a string matching the item you wish to selectReturns the id number of the currently selected item (starting with 0 for the first item).
Return value (int): the id number of the currently selected itemReturns the text string associated with the currently selected item.
Return value (string): the text string associated with the currently selected itemChanges the text string associated with an entry in the list.
Return value: none id (int): the number of the entry (starting with 0 for the first item) label (string): the new text string to replace that entry in the list