A ListDialog is a dialog to display a listbox with a number of choices. When the user makes a selection and types OK or <Enter>, the widget returns the value via the activate method.
set w [ListDialog .d \ -text {Please choose} \ -choice {{first line} {second line} {third line} {fourth line} {...}} \ -modal 0] puts "Dialog returned: [$w activate]"
See ListDialog(n) for more details.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory