3 # Standard Button Box, used in standard dialog boxes
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.
13 tixWidgetClass tixStdButtonBox {
14 -classname TixStdButtonBox
15 -superclass tixButtonBox
17 -applycmd -cancelcmd -helpcmd -okcmd
20 {-applycmd applyCmd ApplyCmd ""}
21 {-cancelcmd cancelCmd CancelCmd ""}
22 {-helpcmd helpCmd HelpCmd ""}
23 {-okcmd okCmd OkCmd ""}
35 proc tixStdButtonBox:ConstructWidget {w} {
38 tixChainMethod $w ConstructWidget
40 $w add ok -text OK -under 0 -width 6 -command $data(-okcmd)
41 $w add apply -text Apply -under 0 -width 6 -command $data(-applycmd)
42 $w add cancel -text Cancel -under 0 -width 6 -command $data(-cancelcmd)
43 $w add help -text Help -under 0 -width 6 -command $data(-helpcmd)
46 proc tixStdButtonBox:config {w flag value} {
51 $data(w:ok) config -command $value
54 $data(w:apply) config -command $value
57 $data(w:cancel) config -command $value
60 $data(w:help) config -command $value
63 tixChainMethod $w config $flag $value