Go up one levelGo to Previous Go to Next

ChoiceDialog

A ChoiceDialog is a dialog widget used to display a message and a list of choices to get a choice from the user. A Tcl command is evaluated with the user's selection when the OK button is pressed.

Example:

 
set w [ChoiceDialog .d \ 
   -text {Please choose...} \ 
   -cols 2 \ 
   -messagewidth 3i \ 
   -choice {One Two Three Four Five Six Seven Eight} \ 
   -value {One}] 
puts "Dialog returned: [$w activate]"

See ChoiceDialog(n) for more details.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory