Sets the behavior and appearance of a ListBox control.
Description
You can set
ListBoxStyle to the following values:
- ListBoxStyle.standard: Looks and behaves like a traditional list control.
- ListBoxStyle.checkbutton: Has either a CheckButton (for multiple selection) or a RadioButton (for single selection) at the beginning of each list item. This button selects the item when checked. It makes the interface much clearer for users, who can tell at a glance whether the list is single-selection or multiple. The button is physically outside the ListItem, so this doesn't affect the generation of ListItems by ListModelControl.list-item-creation-proc or by hand.
- ListBoxStyle.toggle: Like ListBoxStyle.standard, but when a user clicks on an item that is already selected, the item becomes unselected. (ListBoxStyle.standard behavior leaves the item selected.)