3 # This file implements Simple Dialog widgets
5 # Copyright (c) 1996, Expert Interface Technologies
7 # See the file "license.terms" for information on usage and redistribution
8 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11 tixWidgetClass tixSimpleDialog {
12 -classname TixSimpleDialog
13 -superclass tixDialogShell
16 -buttons -message -type
19 {-buttons buttons Buttons ""}
20 {-message message Message ""}
21 {-type type Type info}
25 proc tixSimpleDialog:ConstructWidget {w} {
28 tixChainMethod $w ConstructWidget
32 label $w.top.icon -image [tix getimage $data(-type)]
33 label $w.top.message -text $data(-message)
35 pack $w.top.icon -side left -padx 20 -pady 50 -anchor c
36 pack $w.top.message -side left -padx 10 -pady 50 -anchor c
40 pack $w.bot -side bottom -fill x
41 pack $w.top -side top -expand yes -fill both