Help Contents / GUI programming / ListBoxes

ListBoxes
...are little windows containing a text label and a list of text choices, which can run a Logo instructionlist when the user clicks with the mouse on them and selects a choice, and when a key event is received. 

A listbox is used to select one or more of a list of strings. The strings are displayed in a scrolling box, with the selected string(s) marked in reverse video. A listbox can be single selection (if an item is selected, the previous selection is removed) or multiple selection (clicking an item toggles the item on or off independently of other selections). 

List box elements are numbered from zero. Their number is limited in some platforms (e.g. ca. 2000 on GTK). 

The corresponding demo is listboxtest.lg. 

This section contains the following sub-sections:
	ListBox
	ListBoxDestroy
	ListBoxSelections
	ListBoxSetSelections
	ListBoxSetChoices
	ListBoxAppend
	ListBoxSetItem
	ListBoxRemoveItem
	ListBoxCount
	ListBoxSetBackgroundColor
	ListBoxSetColor
	ListBoxSetFontSize
	ListBoxSetFontName
	ListBoxSetFontStyle
	ListBoxSetFontWeight
	ListBoxOnChar
	ListBoxOnKeyDown
	ListBoxOnKeyUp
	ListBoxOnSelect
	ListBoxOnDClick
	ListBoxEnable

previous: IntControls	next: ListControls
