URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [messagedialog] - Rev 1780
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/sh
# ----------------------------------------------------------------------
# DEMO: messagedialog in [incr Widgets]
# ----------------------------------------------------------------------
#\
exec itkwish "$0" ${1+"$@"}
package require Iwidgets 3.0
# itkwish interprets the rest...
# ----------------------------------------------------------------------
button .b -text "Confirm..." -command {
if {[.md activate]} {
puts "selected: Yes"
} else {
puts "selected: No"
}
}
pack .b
iwidgets::messagedialog .md -title "Message Dialog" -modality application \
-bitmap questhead -text "Are you sure?"
.md hide Help
.md buttonconfigure OK -text "Yes"
.md buttonconfigure Cancel -text "No"
Go to most recent revision | Compare with Previous | Blame | View Log