#!/bin/sh # ---------------------------------------------------------------------- # DEMO: selectiondialog in [incr Widgets] # ---------------------------------------------------------------------- #\ exec itkwish -f "$0" ${1+"$@"} package require -exact Iwidgets 2.2 # itkwish interprets the rest... # ---------------------------------------------------------------------- option add *textBackground seashell iwidgets::selectiondialog .sd -modality application .sd configure -selectionlabel "Font:" -items { Ariel Courier Helvetica Knarly Lucida Rumpus Symbol Times "Zapf Dingbats" } button .select -text "Font..." -command { if {[.sd activate]} { puts "selected: [.sd get]" } else { puts "cancelled" } } pack .select -side left