next up previous contents
Next: Menu Up: Element on a configuration page Previous: Line

ListBox

 

tex2html_wrap1045


A listbox is an element where you can select a number of elements from a fixed set.

Standard Options

-text
This is the title of the ListBox.
-default
This is a list of default values for the ListBox.
-defaultIndex
This is a shortcut to set the default value to the element with the given indexes.
-entries
This is a list of entries in the menu.
-entryhelp
This is a list : {"element 1" "help for element 1" "element 2" "help for element 2" ...}.
If this is given, the -entries option is ignored.
-help
This is the help for the Menu.
-export
This tells wether the widget shall be exported or not.

Link to Variables

A ListBox links to an associative array with the same name as the ListBox, and with the following keys:

name
This is a list of the text which is selected.
index
This is a list of those indexes into the list of entries, which are selected.



Jesper Kjær Pedersen <blackie@imada.ou.dk>
Wed Oct 2 13:29:53 MET DST 1996